summaryrefslogtreecommitdiffstats
path: root/after/plugin/scrollbar.lua
blob: cc985371cd5f446efbe2180659efa95efd092935 (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
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,
  },
})