summaryrefslogtreecommitdiffstats
path: root/after/plugin/scrollbar.lua
blob: 5125f7cfc2c9c84a1b16f82a94bd1467dce03a7c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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,
} ]]