switch from nvimtree to neotree
This commit is contained in:
parent
615e8a4aae
commit
690372bd88
13 changed files with 69 additions and 69 deletions
31
lua/custom/plugins/file-explorer.lua
Normal file
31
lua/custom/plugins/file-explorer.lua
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
return {
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
config = function()
|
||||
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
|
||||
local ntree = require 'neo-tree'
|
||||
ntree.setup({
|
||||
close_if_last_window = true,
|
||||
window = {
|
||||
width = 30,
|
||||
mappings = {
|
||||
["o"] = "open",
|
||||
["F"] = "clear_filter",
|
||||
['e'] = function() vim.api.nvim_command('Neotree focus filesystem left') end,
|
||||
['b'] = function() vim.api.nvim_command('Neotree focus buffers left') end,
|
||||
['g'] = function() vim.api.nvim_command('Neotree focus git_status left') end,
|
||||
}
|
||||
},
|
||||
filesystem = {
|
||||
follow_current_file = true
|
||||
},
|
||||
source_selector = {
|
||||
winbar = true
|
||||
}
|
||||
})
|
||||
end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue