summaryrefslogtreecommitdiffstats
path: root/after/plugin/sfm.lua
blob: 5b2e776261f0494486fa85741d18e82f4b42f7eb (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
local status_ok, sfm = pcall(require, "sfm")
if not status_ok then
	return
end

sfm.setup {
  view = {
    side = 'right',
    width = 35,
  },
  mappings = {
    custom_only = false,
    list = {
      { key = 's', action = 'toggle_selection' }
    }
  },
  renderer = {
    icons = {
      file = {
        default = "#",
        symlink = "#",
      },
      folder = {
        default = "[|",
        open = "[/",
        symlink = "[|",
        symlink_open = "[/",
      },
      indicator = {
        folder_closed = "",
        folder_open = "",
        file = "",
      },
      selection = "*"
    }
  }
}:load_extension('sfm-git', {
  icons = {
    unstaged = "+",
    staged = "S",
    unmerged = "U",
    renamed = "r",
    untracked = "?",
    deleted = "-",
    ignored = "?",
  }
})