2023-11-06 20:11:34 +00:00
|
|
|
-- disable netrw at the very start of your init.lua
|
|
|
|
vim.g.loaded_netrw = 1
|
|
|
|
vim.g.loaded_netrwPlugin = 1
|
|
|
|
|
|
|
|
-- set termguicolors to enable highlight groups
|
|
|
|
vim.opt.termguicolors = true
|
|
|
|
|
|
|
|
-- OR setup with some options
|
|
|
|
require("nvim-tree").setup({
|
|
|
|
sort_by = "case_sensitive",
|
|
|
|
view = {
|
|
|
|
width = 40,
|
|
|
|
},
|
|
|
|
renderer = {
|
|
|
|
group_empty = true,
|
|
|
|
},
|
|
|
|
filters = {
|
|
|
|
dotfiles = false,
|
2023-11-11 14:17:42 +00:00
|
|
|
-- don't hide gitignored files
|
|
|
|
git_ignored = false,
|
2023-11-06 20:11:34 +00:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
vim.api.nvim_set_keymap('n', '<C-t>', ':NvimTreeToggle<CR>', {noremap = true, silent = true})
|
|
|
|
vim.keymap.set("n", "<leader>e", "<cmd>NvimTreeFocus<CR>")
|