diff --git a/lua/install-plugins.lua b/lua/install-plugins.lua index 8f9c77e..fca9dad 100644 --- a/lua/install-plugins.lua +++ b/lua/install-plugins.lua @@ -341,6 +341,12 @@ return require('packer').startup(function(use) require('plugins.indent-blankline-nvim') end, } + use { + 'ktunprasert/gui-font-resize.nvim', + config = function() + require('plugins.gui-font-resize-nvim') + end, + } -- Automatically set up your configuration after cloning packer.nvim -- Put this at the end after all plugins diff --git a/lua/plugins/gui-font-resize-nvim.lua b/lua/plugins/gui-font-resize-nvim.lua new file mode 100644 index 0000000..de33539 --- /dev/null +++ b/lua/plugins/gui-font-resize-nvim.lua @@ -0,0 +1,8 @@ +require('gui-font-resize').setup({ + default_size = 11.0, -- absolute size it will fallback to when :GUIFontSizeSet is not specified + change_by = 1, -- step value that will inc/dec the fontsize by +}) + +vim.keymap.set('n', '', [[GUIFontSizeUp]], { noremap = true, silent = true}) +vim.keymap.set('n', '', [[GUIFontSizeDown]], { noremap = true, silent = true}) +vim.keymap.set('n', '', [[set guifont=Hack:h11 | GUIFontSizeSet]], { noremap = true, silent = true})