Add nvim-tree, with configuration

This commit is contained in:
Eduardo Cueto-Mendoza 2024-01-31 10:56:31 +00:00
parent ad48881a01
commit e6a0fc287b
3 changed files with 28 additions and 1 deletions

View File

@ -0,0 +1,25 @@
-- disable netrw at the very start of your init.lua
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
-- optionally enable 24-bit colour
vim.opt.termguicolors = true
-- empty setup using defaults
require("nvim-tree").setup()
-- OR setup with some options
require("nvim-tree").setup({
sort = {
sorter = "case_sensitive",
},
view = {
width = 30,
},
renderer = {
group_empty = true,
},
filters = {
dotfiles = true,
},
})

View File

@ -103,6 +103,7 @@ local plugins = {
end
},
{ 'vimwiki/vimwiki' },
{ "nvim-tree/nvim-tree.lua" },
{
"nvim-neotest/neotest",
dependencies = {

View File

@ -1,5 +1,6 @@
-- Open Ex as buffer
vim.keymap.set("n", "<leader>pv", vim.cmd.Ex, { desc = "Open Ex" })
-- vim.keymap.set("n", "<leader>pv", vim.cmd.Ex, { desc = "Open Ex" })
vim.keymap.set("n", "<leader>pv", ":NvimTreeToggle<CR>", { desc = "Open Ex" })
-- Exit insert mode without hitting Esc
vim.keymap.set("i", "jj", "<Esc>", { desc = "Esc" })