From 7d96efd08d13d8f4fdbb046cd60ae1593cee2a13 Mon Sep 17 00:00:00 2001 From: liv Date: Mon, 4 Mar 2024 11:26:19 +0100 Subject: [PATCH] add option for font size --- dot_config/nvim/lua/config/options.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dot_config/nvim/lua/config/options.lua b/dot_config/nvim/lua/config/options.lua index 9e53f28..bfe0241 100644 --- a/dot_config/nvim/lua/config/options.lua +++ b/dot_config/nvim/lua/config/options.lua @@ -5,6 +5,14 @@ -- Disable relative line numbers 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 -- Reduce neovide scroll animation length vim.g.neovide_scroll_animation_length = 0.1