From 7c5d3eff786bef884022cc813448bb085ba4eccd Mon Sep 17 00:00:00 2001 From: Squibid Date: Mon, 3 Apr 2023 09:34:31 +0000 Subject: add tree file view, and modify scrollbar --- lua/core/overrides/sfm.lua | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 lua/core/overrides/sfm.lua (limited to 'lua/core/overrides/sfm.lua') 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 = "#" + } +}) -- cgit v1.2.1