working
This commit is contained in:
parent
5bdde24dfb
commit
dd1d1bb6e9
49 changed files with 2444 additions and 1322 deletions
37
lua/plugins/neo-tree.lua
Normal file
37
lua/plugins/neo-tree.lua
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
return {
|
||||
{
|
||||
'nvim-neo-tree/neo-tree.nvim',
|
||||
opts = {
|
||||
window = {
|
||||
position = 'right', -- Ensure Neo-Tree opens on the right
|
||||
},
|
||||
filesystem = {
|
||||
follow_current_file = true, -- Automatically reveal the current file
|
||||
use_libuv_file_watcher = true, -- Auto-refresh when files change
|
||||
filtered_items = {
|
||||
visible = true,
|
||||
show_hidden_count = true,
|
||||
hide_dotfiles = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
'<leader>fe',
|
||||
function()
|
||||
vim.cmd 'Neotree toggle right' -- Open Neo-Tree on the right side
|
||||
end,
|
||||
desc = 'Toggle Neo-Tree (Right Side)',
|
||||
},
|
||||
{
|
||||
'<leader>fE',
|
||||
function()
|
||||
vim.cmd 'Neotree focus' -- Focus on the Neo-Tree window
|
||||
end,
|
||||
desc = 'Focus Neo-Tree',
|
||||
},
|
||||
{ '<leader>e', '<leader>fe', desc = 'Toggle Neo-Tree', remap = true },
|
||||
{ '<leader>E', '<leader>fE', desc = 'Focus Neo-Tree', remap = true },
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue