dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit 5a3a855e339fd162dd68a19aa1018546f6dbb744
parent f40a8af7cd9bd99a3b499d6f2893d8e2fa91ab67
Author: Chris Bracken <chris@bracken.jp>
Date:   Sun, 25 Aug 2024 15:55:16 -0700

vim: add nvim-tree plugin

Diffstat:
M.config/nvim/lazy-lock.json | 2++
M.config/nvim/lua/plugins/utilities.lua | 26++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json @@ -4,6 +4,8 @@ "gn": { "branch": "main", "commit": "225e90c5025bf74f41dbee60d9cde4512c846fe7" }, "lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" }, "nvim-lspconfig": { "branch": "master", "commit": "911167921d49cd5c1c9b2436031d0da3945e787f" }, + "nvim-tree.lua": { "branch": "master", "commit": "d43ab67d0eb4317961c5e9d15fffe908519debe0" }, + "nvim-web-devicons": { "branch": "master", "commit": "3722e3d1fb5fe1896a104eb489e8f8651260b520" }, "rust.vim": { "branch": "master", "commit": "889b9a7515db477f4cb6808bef1769e53493c578" }, "solarized-osaka.nvim": { "branch": "main", "commit": "126d394c0c979a99206214a2b6b8c86e456c9c0f" }, "trouble.nvim": { "branch": "main", "commit": "6efc446226679fda0547c0fd6a7892fd5f5b15d8" }, diff --git a/.config/nvim/lua/plugins/utilities.lua b/.config/nvim/lua/plugins/utilities.lua @@ -13,5 +13,31 @@ return { }, { "ibhagwan/fzf-lua" }, { "lewis6991/gitsigns.nvim" }, + { + "nvim-tree/nvim-tree.lua", + opts = { + filters = { + custom = { ".DS_Store" } + }, + renderer = { + indent_markers = { + enable = true, + }, + }, + view = { + width = 35, + }, + }, + init = function() + -- Disable default netrw explorer. + vim.g.loaded_netrw = 1 + vim.g.loaded_netrwPlugin = 1 + + vim.keymap.set("n", "<leader>ee", "<cmd>NvimTreeFindFileToggle<CR>") + vim.keymap.set("n", "<leader>ec", "<cmd>NvimTreeCollapse<CR>") + vim.keymap.set("n", "<leader>er", "<cmd>NvimTreeRefresh<CR>") + end, + dependencies = "nvim-tree/nvim-web-devicons", + }, { "tpope/vim-fugitive" }, }