diff options
| author | 2022-11-08 13:06:08 -0500 | |
|---|---|---|
| committer | 2022-11-08 13:06:08 -0500 | |
| commit | 946b25db1aa005bf072c3c468cb0641cf2fac45d (patch) | |
| tree | 1afe414f65b2ff978cf3227ee424c21835158672 /dot_config/nvim/lua/plugins/nvim-tree.lua | |
| parent | git: update config (diff) | |
nvim: init bootstrappable config
Diffstat (limited to '')
| -rw-r--r-- | dot_config/nvim/lua/plugins/nvim-tree.lua | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dot_config/nvim/lua/plugins/nvim-tree.lua b/dot_config/nvim/lua/plugins/nvim-tree.lua new file mode 100644 index 0000000..129721d --- /dev/null +++ b/dot_config/nvim/lua/plugins/nvim-tree.lua @@ -0,0 +1,45 @@ +require 'nvim-tree'.setup { + filters = { + dotfiles = true, + }, + git = { + enable = true, + ignore = true, + }, + renderer = { + icons = { + glyphs = { + default = '-', + symlink = '→', + folder = { + arrow_closed = '▶', + arrow_open = '▼', + + default = '📁', + open = '📂', + + symlink = '📁', + symlink_open = '📂', + + empty = '📁', + empty_open = '📂', + }, + git = { + deleted = '-', -- unused + unstaged = '±', + untracked = '+', + unmerged = 'U', + }, + }, + }, + }, +} + +local api = require 'nvim-tree.api' +local wk = require 'which-key' +local km = vim.keymap.set +wk.register { + ['<leader>'] = { + n = { api.tree.toggle, 'nvim-tree' }, + } +} |
