blob: f9e34551bb5f6ada9a0a9c993775e3754dd1c8b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
if vim.g.neovide then
-- windows only stuff
-- using neovide only in windows
local guifontsize = 14
local guifont = "Cascadia Mono"
vim.o.guifont = guifont..":h"..guifontsize
vim.g.neovide_cursor_trail_size = 0.1
function AdjustFontSize(amount)
guifontsize = guifontsize + amount
print(guifontsize)
print(guifont)
vim.o.guifont = guifont..":h"..guifontsize
end
vim.keymap.set({"n", "i"}, "<C-+>", function() AdjustFontSize(1) end)
vim.keymap.set({"n", "i"}, "<C-->", function() AdjustFontSize(-1) end)
end
|