refactor nvim: 調整 scrollbar.lua
This commit is contained in:
parent
37292668f4
commit
363bf9ce3d
@ -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
|
||||||
-- },
|
-- },
|
||||||
-- }
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user