summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rw-r--r--lua/talha/neovide.lua13
2 files changed, 13 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 282bd5c..c84aa4a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-plugin/**
+plugin/packer_compiled.lua
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