add tree file view, and modify scrollbar

This commit is contained in:
2023-04-03 09:34:31 +00:00
parent 2da3e86425
commit 7c5d3eff78
7 changed files with 58 additions and 12 deletions

View File

@ -0,0 +1,40 @@
local sfm = require('sfm')
sfm.setup {
view = {
side = "left", -- side of the tree, can be `left`, `right`
width = 30
},
mappings = {
custom_only = false,
},
renderer = {
icons = {
file = {
default = "#",
symlink = "#",
},
folder = {
default = "[|",
open = "[/",
symlink = "[|",
symlink_open = "[/",
},
indicator = {
folder_closed = "",
folder_open = "",
file = "",
},
}
},
}:load_extension('sfm-git', {
icons = {
staged = "^",
unstaged = "+",
unmerged = "",
renamed = ">",
untracked = "?",
deleted = "x",
ignored = "#"
}
})