Separate neovide settings to it's own file in nvim config
This commit is contained in:
parent
718ecfa54e
commit
3e1d80c56c
3 changed files with 27 additions and 16 deletions
19
home/.config/nvim/lua/neovide.lua
Normal file
19
home/.config/nvim/lua/neovide.lua
Normal file
|
@ -0,0 +1,19 @@
|
|||
local g = vim.g
|
||||
|
||||
-- Change scale factor with C= and C-
|
||||
g.neovide_scale_factor = 1.0
|
||||
local change_scale_factor = function(delta)
|
||||
g.neovide_scale_factor = g.neovide_scale_factor * delta
|
||||
end
|
||||
vim.keymap.set("n", "<C-=>", function()
|
||||
change_scale_factor(1.25)
|
||||
end)
|
||||
vim.keymap.set("n", "<C-->", function()
|
||||
change_scale_factor(1 / 1.25)
|
||||
end)
|
||||
|
||||
-- Hide mouse when typing in neovide
|
||||
g.neovide_hide_mouse_when_typing = true
|
||||
|
||||
-- Enable cursor particles in neovide
|
||||
g.neovide_cursor_vfx_mode = "railgun"
|
Loading…
Add table
Add a link
Reference in a new issue