34 lines
591 B
Lua
34 lines
591 B
Lua
local status_ok, scrollbar = pcall(require, "scrollbar")
|
|
if not status_ok then
|
|
return
|
|
end
|
|
|
|
scrollbar.setup({
|
|
hide_if_all_visible = true,
|
|
handle = {
|
|
hide_if_all_visible = true,
|
|
},
|
|
marks = {
|
|
Cursor = {
|
|
text = "*",
|
|
},
|
|
GitAdd = { text = "|" },
|
|
GitChange = { text = "|" },
|
|
GitDelete = { text = "-" },
|
|
},
|
|
handlers = {
|
|
cursor = true,
|
|
diagnostic = true,
|
|
gitsigns = true, -- Requires gitsigns
|
|
handle = true,
|
|
},
|
|
})
|
|
|
|
--[[ scrollbar.setup {
|
|
current_only = true,
|
|
winblend = 50,
|
|
zindex = 40,
|
|
excluded_filetypes = {},
|
|
width = 2,
|
|
} ]]
|