From b94eefa6b58f274bb61db4e792105c3959cf2022 Mon Sep 17 00:00:00 2001 From: Ethan Morgan Date: Sat, 14 Feb 2026 16:40:16 +0000 Subject: init dotfiles and stuff --- nvim/after/plugin/tree.lua | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 nvim/after/plugin/tree.lua (limited to 'nvim/after/plugin/tree.lua') 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', '', vim.cmd.NvimTreeToggle) +vim.keymap.set('n', 'ff', vim.cmd.NvimTreeFindFile) -- cgit v1.2.3