Move neovide config into own file ui/neovide.lua

This commit is contained in:
Evie Litherland-Smith 2023-05-17 09:11:21 +01:00
parent 347afd9895
commit b53fc4ef4b
2 changed files with 14 additions and 15 deletions

View file

@ -61,18 +61,4 @@ vim.keymap.set("i", "jk", "<esc>")
vim.keymap.set("n", "<leader>l", "<cmd>Lazy<CR>") vim.keymap.set("n", "<leader>l", "<cmd>Lazy<CR>")
-- neovide -- neovide
if vim.g.neovide then if vim.g.neovide then require "ui.neovide" end
vim.opt.winblend = 20
vim.opt.pumblend = 20
vim.g.neovide_padding_top = 5
vim.g.neovide_padding_bottom = 5
vim.g.neovide_padding_left = 5
vim.g.neovide_padding_right = 5
vim.g.neovide_floating_blur_amount_x = 2.0
vim.g.neovide_floating_blur_amount_y = 2.0
vim.g.neovide_hide_mouse_when_typing = false
vim.g.neovide_remember_window_size = false
end

13
lua/ui/neovide.lua Normal file
View file

@ -0,0 +1,13 @@
-- vim.opt.winblend = 20
-- vim.opt.pumblend = 20
vim.g.neovide_padding_top = 5
vim.g.neovide_padding_bottom = 5
vim.g.neovide_padding_left = 5
vim.g.neovide_padding_right = 5
vim.g.neovide_floating_blur_amount_x = 2.0
vim.g.neovide_floating_blur_amount_y = 2.0
vim.g.neovide_hide_mouse_when_typing = false
vim.g.neovide_remember_window_size = false