Add nvim-tree, with configuration
This commit is contained in:
parent
ad48881a01
commit
e6a0fc287b
|
@ -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,
|
||||||
|
},
|
||||||
|
})
|
|
@ -103,6 +103,7 @@ local plugins = {
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
{ 'vimwiki/vimwiki' },
|
{ 'vimwiki/vimwiki' },
|
||||||
|
{ "nvim-tree/nvim-tree.lua" },
|
||||||
{
|
{
|
||||||
"nvim-neotest/neotest",
|
"nvim-neotest/neotest",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
-- Open Ex as buffer
|
-- 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
|
-- Exit insert mode without hitting Esc
|
||||||
vim.keymap.set("i", "jj", "<Esc>", { desc = "Esc" })
|
vim.keymap.set("i", "jj", "<Esc>", { desc = "Esc" })
|
||||||
|
|
Loading…
Reference in New Issue