diff options
author | talha <talha@talhaamir.xyz> | 2024-01-07 15:26:14 +0500 |
---|---|---|
committer | talha <talha@talhaamir.xyz> | 2024-01-07 15:26:14 +0500 |
commit | 060e86a22bc0d2f9f5d9eda164fc74d16302aff7 (patch) | |
tree | 3b8fc34a7c04383e1d92f8a86f3af44a575f6583 /lua/talha | |
parent | 5fe3ef2b10658ac07af4e55de18bd312e50c2e64 (diff) |
Updated neovide config
Diffstat (limited to 'lua/talha')
-rw-r--r-- | lua/talha/neovide.lua | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lua/talha/neovide.lua b/lua/talha/neovide.lua index 11d923a..f9e3455 100644 --- a/lua/talha/neovide.lua +++ b/lua/talha/neovide.lua @@ -1,6 +1,17 @@ if vim.g.neovide then -- windows only stuff -- using neovide only in windows - vim.o.guifont = "Cascadia Mono:h14" + 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 |