add option for font size

This commit is contained in:
liv 2024-03-04 11:26:19 +01:00
parent f61916ba0d
commit 7d96efd08d

View file

@ -5,6 +5,14 @@
-- Disable relative line numbers -- Disable relative line numbers
vim.o.relativenumber = false vim.o.relativenumber = false
-- Change the default font
-- Some of my machines have HDR displayed, meaning they need a smaller font size
if vim.fn.hostname() == "enoko" then
vim.o.guifont = "JetBrains Mono:h12"
else
vim.o.guifont = "JetBrains Mono:h14"
end
if vim.g.neovide then if vim.g.neovide then
-- Reduce neovide scroll animation length -- Reduce neovide scroll animation length
vim.g.neovide_scroll_animation_length = 0.1 vim.g.neovide_scroll_animation_length = 0.1