refactor nvim: 調整 scrollbar.lua

This commit is contained in:
Yuan Chiu 2025-05-31 12:58:38 +08:00
parent 37292668f4
commit 363bf9ce3d
Signed by: yuan
GPG Key ID: 50FBE4156404B98D

View File

@ -1,20 +1,21 @@
-- if true then return {} end -- 先停用 -- if true then return {} end -- 先停用
return { return {
{
'dstein64/nvim-scrollview', 'dstein64/nvim-scrollview',
config = function() opts = {
require('scrollview').setup({
current_only = true, current_only = true,
-- base = 'buffer', -- base = 'buffer',
-- column = 80, -- 註解掉這行,讓它自己決定位置 -- column = 80, -- 註解掉這行,讓它自己決定位置
-- excluded_filetypes = { 'neo-tree', 'help' }, -- excluded_filetypes = { 'neo-tree', 'help' },
signs_on_startup = { 'all' }, signs_on_startup = { 'all' },
diagnostics_severities = { vim.diagnostic.severity.ERROR }, diagnostics_severities = { vim.diagnostic.severity.ERROR },
}) },
config = function(_, opts)
require('scrollview').setup(opts)
end, end,
} },
-- return {
-- { "petertriho/nvim-scrollbar", -- { "petertriho/nvim-scrollbar",
-- cond = true, -- cond = true,
-- config = function() -- config = function()
@ -168,4 +169,4 @@ return {
-- }) -- })
-- end -- end
-- }, -- },
-- } }