better scrolling for neovide

This commit is contained in:
Christoph J. Scherr 2024-03-01 16:41:14 +01:00
parent 53d285d130
commit 1541574eee
Signed by: cscherrNT
GPG Key ID: 8E2B45BC51A27EA7
1 changed files with 80 additions and 63 deletions

View File

@ -87,6 +87,23 @@ if vim.g.started_by_firenvim == true then
opt.wrap = true opt.wrap = true
end end
if vim.g.neovide == true then
-- fulscreen with F11
vim.api.nvim_set_keymap("n", "<F11>", ":let g:neovide_fullscreen = !g:neovide_fullscreen<CR>", {})
vim.g.neovide_underline_automatic_scaling = true
-- vim.g.neovide_floating_blur_amount_x = 2.0
-- vim.g.neovide_floating_blur_amount_y = 2.0
vim.g.neovide_scroll_animation_length = 0.1
-- vim.g.neovide_cursor_animation_length = 0
-- vim.g.neovide_cursor_trail_size = 0
vim.g.neovide_hide_mouse_when_typing = true
vim.g.neovide_fullscreen = true
end
opt.helpheight = 0 -- Disable help window resizing opt.helpheight = 0 -- Disable help window resizing
opt.winwidth = 30 -- Minimum width for active window opt.winwidth = 30 -- Minimum width for active window
opt.winminwidth = 1 -- Minimum width for inactive windows opt.winminwidth = 1 -- Minimum width for inactive windows
@ -165,4 +182,4 @@ if vim.g.started_by_firenvim == true then
end end
-- alias filetypes -- alias filetypes
vim.filetype.add { extension = { tera = 'html' } } vim.filetype.add { extension = { tera = "html" } }