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

@ -75,7 +75,7 @@ opt.scrolloff = 2 -- Keep at least n lines above/below
opt.sidescrolloff = 0 -- Keep at least n lines left/right
opt.numberwidth = 2 -- Minimum number of columns to use for the line number
opt.number = true -- Show line numbers
opt.relativenumber = true -- Show relative line numbers
opt.relativenumber = true -- Show relative line numbers
opt.ruler = true -- Default status ruler
opt.list = true -- Show hidden characters
opt.showtabline = 1 -- Don't change this, goes back to a vanilla vim default
@ -87,6 +87,23 @@ if vim.g.started_by_firenvim == true then
opt.wrap = true
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.winwidth = 30 -- Minimum width for active window
opt.winminwidth = 1 -- Minimum width for inactive windows
@ -165,4 +182,4 @@ if vim.g.started_by_firenvim == true then
end
-- alias filetypes
vim.filetype.add { extension = { tera = 'html' } }
vim.filetype.add { extension = { tera = "html" } }