Replace neotree with nvim-tree
This commit is contained in:
parent
39dfc1554a
commit
767ad054bd
8 changed files with 66 additions and 26 deletions
21
lua/core/setup/async/project-tree.lua
Normal file
21
lua/core/setup/async/project-tree.lua
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
local keymaps = require('core.keymaps.async.project-tree')
|
||||
|
||||
return function()
|
||||
local on_attach = function(bufnr)
|
||||
keymaps(bufnr)
|
||||
end
|
||||
|
||||
-- HACK A temporary way to subscribe to the fact that
|
||||
-- the setup is complete
|
||||
vim.api.nvim_create_autocmd("User", {
|
||||
pattern = "NvimTreeSetup",
|
||||
callback = function(data)
|
||||
on_attach(data.buf)
|
||||
end,
|
||||
})
|
||||
|
||||
require("nvim-tree").setup({
|
||||
-- TODO uncomment this in a version that it actually works
|
||||
-- on_attach = on_attach
|
||||
})
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue