Skip to content

Commit

Permalink
feat(nvim): enable smooth scrolling on neovim 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
0xRichardH committed Jan 12, 2024
1 parent 373680f commit 8ab324e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/nvim/lua/config/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ for k, v in pairs(vimOptions) do
vim.opt[k] = v
end

if vim.fn.has("nvim-0.10") == 1 then
vim.opt.smoothscroll = true
end

-- Cursorline highlighting control
-- Only have it on in the active buffer
local group = vim.api.nvim_create_augroup("CursorLineControl", { clear = true })
Expand Down

0 comments on commit 8ab324e

Please sign in to comment.