diff options
author | Squibid <me@zacharyscheiman.com> | 2023-04-03 09:34:31 +0000 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2023-04-03 09:34:31 +0000 |
commit | 7c5d3eff786bef884022cc813448bb085ba4eccd (patch) | |
tree | d3f936c71555e259318116272e9e478954fa5eeb /lua/core/overrides/sfm.lua | |
parent | 2da3e8642576b2b97544a94a91d16779914a3de1 (diff) | |
download | nvim-7c5d3eff786bef884022cc813448bb085ba4eccd.tar.gz nvim-7c5d3eff786bef884022cc813448bb085ba4eccd.tar.bz2 nvim-7c5d3eff786bef884022cc813448bb085ba4eccd.zip |
add tree file view, and modify scrollbarv1.0
Diffstat (limited to 'lua/core/overrides/sfm.lua')
-rw-r--r-- | lua/core/overrides/sfm.lua | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/lua/core/overrides/sfm.lua b/lua/core/overrides/sfm.lua new file mode 100644 index 0000000..06c77d1 --- /dev/null +++ b/lua/core/overrides/sfm.lua @@ -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 = "#" + } +}) |