init
This commit is contained in:
28
nvim/lua/plugins/extras/ui/scrollbar.lua
Normal file
28
nvim/lua/plugins/extras/ui/scrollbar.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
local excluded_filetypes = { "neo-tree", "alpha", "Outline", "edgy", "floaterm" }
|
||||
|
||||
if vim.fn.has("nvim-0.10") == 1 then
|
||||
return {
|
||||
"lewis6991/satellite.nvim",
|
||||
opts = {
|
||||
excluded_filetypes = excluded_filetypes,
|
||||
},
|
||||
event = "LazyFile",
|
||||
}
|
||||
else
|
||||
return {
|
||||
"dstein64/nvim-scrollview",
|
||||
event = "LazyFile",
|
||||
keys = { { "<leader>uV", "<cmd>ScrollViewToggle<CR>", desc = "Toggle Scrollview" } },
|
||||
config = function()
|
||||
require("scrollview").setup({
|
||||
excluded_filetypes = excluded_filetypes,
|
||||
signs_column = 0,
|
||||
winblend = 25,
|
||||
diagnostics_error_symbol = "",
|
||||
diagnostics_warn_symbol = "",
|
||||
diagnostics_info_symbol = "",
|
||||
diagnostics_hint_symbol = "",
|
||||
})
|
||||
end,
|
||||
}
|
||||
end
|
||||
Reference in New Issue
Block a user