summaryrefslogtreecommitdiffstats
path: root/after/plugin/sfm.lua
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2023-04-30 18:41:13 -0400
committerSquibid <me@zacharyscheiman.com>2023-04-30 18:41:13 -0400
commit01a09f243ce07d367c539d69d4a7f4541ab1dcd7 (patch)
treeec2af23e59a38d4f9ac476e69abc07c8110b52a1 /after/plugin/sfm.lua
parent7c5d3eff786bef884022cc813448bb085ba4eccd (diff)
downloadnvim-01a09f243ce07d367c539d69d4a7f4541ab1dcd7.tar.gz
nvim-01a09f243ce07d367c539d69d4a7f4541ab1dcd7.tar.bz2
nvim-01a09f243ce07d367c539d69d4a7f4541ab1dcd7.zip
new config old version is now on v1 branch
Diffstat (limited to '')
-rw-r--r--after/plugin/sfm.lua (renamed from lua/core/overrides/sfm.lua)26
1 files changed, 16 insertions, 10 deletions
diff --git a/lua/core/overrides/sfm.lua b/after/plugin/sfm.lua
index 06c77d1..dcbbe95 100644
--- a/lua/core/overrides/sfm.lua
+++ b/after/plugin/sfm.lua
@@ -1,12 +1,18 @@
-local sfm = require('sfm')
+local status_ok, sfm = pcall(require, "sfm")
+if not status_ok then
+ return
+end
sfm.setup {
view = {
- side = "left", -- side of the tree, can be `left`, `right`
- width = 30
+ side = 'right',
+ width = 35,
},
mappings = {
custom_only = false,
+ list = {
+ -- user mappings go here
+ }
},
renderer = {
icons = {
@@ -24,17 +30,17 @@ sfm.setup {
folder_closed = "",
folder_open = "",
file = "",
- },
+ }
}
- },
+ }
}:load_extension('sfm-git', {
icons = {
- staged = "^",
unstaged = "+",
- unmerged = "",
- renamed = ">",
+ staged = "S",
+ unmerged = "U",
+ renamed = "r",
untracked = "?",
- deleted = "x",
- ignored = "#"
+ deleted = "-",
+ ignored = "?",
}
})