Compare commits

...

1 Commits

Author SHA1 Message Date
98c809990b fixed scrolloff for real this time, but no more scrolleof :( 2026-05-02 10:46:21 +01:00
2 changed files with 15 additions and 14 deletions

View File

@@ -40,7 +40,8 @@ vim.opt.incsearch = true
vim.opt.wrap = false vim.opt.wrap = false
-- Scrolloff -- Scrolloff
vim.wo.scrolloff = math.floor(vim.o.lines / 2) - 3 local scrolloff = math.floor(vim.o.lines / 2) - 3
vim.opt.scrolloff = scrolloff
-- Indent -- Indent
vim.o.autoindent = true vim.o.autoindent = true

View File

@@ -20,16 +20,16 @@ require("auto-save").setup({
require("remember").setup({}) require("remember").setup({})
-- enable scrolleof -- enable scrolleof
require("scrollEOF").setup({ -- require("scrollEOF").setup({
-- The pattern used for the internal autocmd to determine -- -- The pattern used for the internal autocmd to determine
-- where to run scrollEOF. See https://neovim.io/doc/user/autocmd.html#autocmd-pattern -- -- where to run scrollEOF. See https://neovim.io/doc/user/autocmd.html#autocmd-pattern
pattern = "*", -- pattern = "*",
-- Whether or not scrollEOF should be enabled in insert mode -- -- Whether or not scrollEOF should be enabled in insert mode
insert_mode = false, -- insert_mode = false,
-- Whether or not scrollEOF should be enabled in floating windows -- -- Whether or not scrollEOF should be enabled in floating windows
floating = true, -- floating = true,
-- List of filetypes to disable scrollEOF for. -- -- List of filetypes to disable scrollEOF for.
disabled_filetypes = { "terminal" }, -- disabled_filetypes = { "terminal" },
-- List of modes to disable scrollEOF for. see https://neovim.io/doc/user/builtin.html#mode() -- -- List of modes to disable scrollEOF for. see https://neovim.io/doc/user/builtin.html#mode()
disabled_modes = { "t", "nt" }, -- disabled_modes = { "t", "nt" },
}) -- })