initial dotfiles
This commit is contained in:
commit
a11473e308
20 changed files with 2831 additions and 0 deletions
28
nvim/lua/plugins/explorer.lua
Normal file
28
nvim/lua/plugins/explorer.lua
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
-- File tree (Neo-tree)
|
||||
-- <leader>e → toggle
|
||||
-- <leader>o → focus/reveal current file
|
||||
return {
|
||||
{
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
branch = "v3.x",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
config = function()
|
||||
require("neo-tree").setup({
|
||||
window = { width = 30 },
|
||||
filesystem = {
|
||||
filtered_items = {
|
||||
hide_dotfiles = false, -- show dotfiles (useful for configs)
|
||||
hide_gitignored = true,
|
||||
},
|
||||
follow_current_file = { enabled = true }, -- auto-reveal open file
|
||||
},
|
||||
})
|
||||
vim.keymap.set("n", "<leader>e", "<cmd>Neotree toggle<cr>", { desc = "Toggle file tree" })
|
||||
vim.keymap.set("n", "<leader>o", "<cmd>Neotree reveal<cr>", { desc = "Reveal file in tree" })
|
||||
end,
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue