chore(vim): add nvim-tree and configuration

This commit is contained in:
Stefan Imhoff
2021-12-11 14:10:14 +01:00
parent 97944d04bf
commit fdaadf71c1
3 changed files with 17 additions and 0 deletions

12
nvim/plugins/tree.lua Normal file
View File

@@ -0,0 +1,12 @@
-- nvim-tree.lua
-- https://github.com/kyazdani42/nvim-tree.lua
local status, nvim_tree = pcall(require, 'nvim-tree')
if (not status) then return end
nvim_tree.setup({})
--- Mappings
local opts = { noremap = true, silent = true }
vim.api.nvim_set_keymap('n', '<leader>nt', [[<Cmd>:NvimTreeToggle<CR>]], opts)