better scrolling for neovide
This commit is contained in:
parent
53d285d130
commit
1541574eee
|
@ -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.sidescrolloff = 0 -- Keep at least n lines left/right
|
||||||
opt.numberwidth = 2 -- Minimum number of columns to use for the line number
|
opt.numberwidth = 2 -- Minimum number of columns to use for the line number
|
||||||
opt.number = true -- Show line numbers
|
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.ruler = true -- Default status ruler
|
||||||
opt.list = true -- Show hidden characters
|
opt.list = true -- Show hidden characters
|
||||||
opt.showtabline = 1 -- Don't change this, goes back to a vanilla vim default
|
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
|
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" } }
|
||||||
|
|
Loading…
Reference in New Issue