2024-06-17 15:22:39 +07:00
|
|
|
if not vim.g.neovide then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
2024-09-04 19:20:28 +07:00
|
|
|
local font = "JetBrainsMono Nerd Font"
|
2024-06-17 15:22:39 +07:00
|
|
|
|
|
|
|
local font_size = vim.o.lines < 60 and 11 or 12
|
|
|
|
|
|
|
|
vim.o.guifont = font .. ":h" .. font_size
|
|
|
|
|
|
|
|
vim.keymap.set("n", "<c-->", function()
|
|
|
|
font_size = font_size - 1
|
|
|
|
vim.o.guifont = font .. ":h" .. font_size
|
|
|
|
vim.notify("Font Set: " .. font .. ":h" .. font_size)
|
|
|
|
end, { desc = "Decrease font size" })
|
|
|
|
|
|
|
|
vim.keymap.set("n", "<c-=>", function()
|
|
|
|
font_size = font_size + 1
|
|
|
|
vim.o.guifont = font .. ":h" .. font_size
|
|
|
|
vim.notify("Font Set: " .. font .. ":h" .. font_size)
|
|
|
|
end, { desc = "Increase font size" })
|