diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:40:16 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:40:16 +0000 |
| commit | b94eefa6b58f274bb61db4e792105c3959cf2022 (patch) | |
| tree | 3d2896fb46ebc769e4fea8cf4f02ce3104e1f974 /nvim/after/plugin/tree.lua | |
Diffstat (limited to 'nvim/after/plugin/tree.lua')
| -rw-r--r-- | nvim/after/plugin/tree.lua | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nvim/after/plugin/tree.lua b/nvim/after/plugin/tree.lua new file mode 100644 index 0000000..555e223 --- /dev/null +++ b/nvim/after/plugin/tree.lua @@ -0,0 +1,35 @@ +require 'nvim-web-devicons'.setup { + strict = true, + override_by_extension = { + ["re"] = { + icon = "", + color = "#DC4C39", + name = "ReasonML" + }, + ["rei"] = { + icon = "", + color = "#B8383C", + name = "ReasonMLInterface" + } + }, +} + +require 'nvim-tree'.setup { + git = { + ignore = false + }, + update_focused_file = { + enable = true, + }, + view = { + width = 24, + adaptive_size = true, + float = { + quit_on_focus_loss = true, + enable = true + } + } +} + +vim.keymap.set('n', '<C-n>', vim.cmd.NvimTreeToggle) +vim.keymap.set('n', '<leader>ff', vim.cmd.NvimTreeFindFile) |