
, which is the preferred approach to define custom mapping in 12 in this case,Īnd then incrementing/decrementing that number.

"JetBrainsMono Nerd Font:style=Regular,Regular:h12", i.e. To infer the current font size from the string I am basically using Lua patterns methods
Alacritty increase font size update#
guifont : find ( ".*:h(%d+)$" ) font_size = tostring ( tonumber ( font_size )+ 1 ) - update the font size vim. set ( "", "", function () - find & get current font size local _, _, font_size = vim. This is the additional configuration code: - zoom vim. This should beĪchieved by editing the relevant portion of vim.o.guifont. In a nutshell, I want to increase/decrease the font size by pressingĬtrl-equal/ Ctrl-minus in vim normal and visual modes. At this time, there is a built-in way to do it, so we will come up with It would be pleasant to be able to adjust the font size when several windows are The trailing number represents the font size. guifont = "JetBrainsMono Nerd Font:style=Regular,Regular:h12" I set the font family, weight and size using : vim. sys/class/power_supply and conditionally adjust the refresh rate to save battery. I could then for example check if my laptop is unplugged by processing You can save that information into a shellĮnvironment variable $MONITOR_RATE, and access it in a viaĪ more elaborate alternative is to query the result of a shell command using For instance, the neovide_refresh_rate value might be differentĪcross your machines and monitors. Vim.fn.getenv() to conditionally set options depending on your shell Wrapping the Neovide specific configuration in this if/end block will not nvim_set_var ( "neovide_refresh_rate", 75 ) - more config goes here. notify ( "This notification should only appear on neovide !" ) - your neovide specific config here - e.g. Our first action is to insulate our neovide specific config from the rest of the In addition, Neovide adds its own setting variables in the a (or init.vim) normally holds the configuration for Neovim, it isĪlso read by Neovide.
Alacritty increase font size code#
In this post, I use some lua code to fix those issues in the configuration. Integrated terminal shell: the fallback colors were not properly defined. I also encountered problems with some color schemes in the However, you could miss some terminal features or shortcuts such as changing theįont size easily.

While keeping all the functionalities and configurations of Neovim. You can easily trackĬursor position when jumping around, and it makes various transitions smooth, Smooth scrolling and cursor effects are enticing for me. Like the terminal, it is not, allowing for some

Graphical user interface for Neovim, in the sense that although it still looks Neo vide is one of the GUI that provides a Neo vim is a vim-based text editor that lives in the
