Separate neovide settings to it's own file in nvim config
This commit is contained in:
parent
52d76d6be5
commit
c5b4cd5ff4
|
@ -1,4 +1,5 @@
|
|||
require("keybinds")
|
||||
require("settings")
|
||||
require("neovide")
|
||||
require("highlight_yank")
|
||||
require("plugins.init")
|
||||
|
|
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"
|
|
@ -7,15 +7,6 @@ o.relativenumber = true
|
|||
-- True colors
|
||||
o.termguicolors = true
|
||||
|
||||
-- Font for nvim GUI's
|
||||
o.guifont = "Fira Code:h14"
|
||||
|
||||
-- Hide mouse when typing in neovide
|
||||
g.neovide_hide_mouse_when_typing = true
|
||||
|
||||
-- Enable cursor particles in neovide
|
||||
g.neovide_cursor_vfx_mode = "railgun"
|
||||
|
||||
-- Floating window transparency
|
||||
o.winblend = 10
|
||||
|
||||
|
@ -33,8 +24,8 @@ o.hidden = true
|
|||
o.number = true
|
||||
|
||||
o.guicursor = table.concat({
|
||||
"i:ver1", -- Vertical bar cursor in insert mode
|
||||
"a:blinkon1", -- Blinking cursor in all modes
|
||||
"i:ver1", -- Vertical bar cursor in insert mode
|
||||
"a:blinkon1", -- Blinking cursor in all modes
|
||||
}, ",")
|
||||
|
||||
-- Enable global statusline
|
||||
|
@ -59,9 +50,9 @@ o.smartindent = true
|
|||
|
||||
-- Firenvim settings
|
||||
vim.g.firenvim_config = {
|
||||
localSettings = {
|
||||
[".*"] = {
|
||||
takeOver = "never",
|
||||
},
|
||||
},
|
||||
localSettings = {
|
||||
[".*"] = {
|
||||
takeOver = "never",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue