diff options
Diffstat (limited to 'nvim/lua/user/nvim-tree.lua')
-rw-r--r-- | nvim/lua/user/nvim-tree.lua | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/nvim/lua/user/nvim-tree.lua b/nvim/lua/user/nvim-tree.lua new file mode 100644 index 0000000..8db97f9 --- /dev/null +++ b/nvim/lua/user/nvim-tree.lua @@ -0,0 +1,65 @@ +local M = { + "kyazdani42/nvim-tree.lua", + commit = "59e65d88db177ad1e6a8cffaafd4738420ad20b6", + event = "VimEnter" +} + +function M.config() + local tree_cb = require("nvim-tree.config").nvim_tree_callback + require("nvim-tree").setup { + update_focused_file = { + enable = true, + update_cwd = true, + }, + renderer = { + icons = { + glyphs = { + default = "", + symlink = "", + folder = { + arrow_open = "", + arrow_closed = "", + default = "", + open = "", + empty = "", + empty_open = "", + symlink = "", + symlink_open = "", + }, + git = { + unstaged = "", + staged = "S", + unmerged = "", + renamed = "➜", + untracked = "U", + deleted = "", + ignored = "◌", + }, + }, + }, + }, + diagnostics = { + enable = true, + show_on_dirs = true, + icons = { + hint = "", + info = "", + warning = "", + error = "", + }, + }, + view = { + width = 30, + side = "left", + mappings = { + list = { + { key = { "l", "<CR>", "o" }, cb = tree_cb "edit" }, + { key = "h", cb = tree_cb "close_node" }, + { key = "v", cb = tree_cb "vsplit" }, + }, + }, + }, + } +end + +return M |