-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
help: neo-tree template integration #201
Comments
I havent used neo-tree personally but I could look into it. However you might consider changing to nvim-tree instead. They are very similiar. Neo-tree might not be maintained anymore unless they find a new maintainer |
Messed around for a bit and it is possible. I need to make a few changes in my code for the tree to automatically refresh after creating files but basically this code is all you need If you have enabled the {
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
"MunifTanjim/nui.nvim",
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
},
config = function()
require("neo-tree").setup({
filesystem = {
use_libuv_file_watcher = true,
window = {
mappings = {
["R"] = "easy",
},
},
commands = {
["easy"] = function(state)
local node = state.tree:get_node()
local path = node.type == "directory" and node.path or vim.fs.dirname(node.path)
require("easy-dotnet").create_new_item(path)
--BUG: Must wait for create_new_item to complete
-- require("neo-tree.ui.renderer").redraw(state)
end
}
},
})
vim.cmd([[nnoremap \ :Neotree reveal<cr>]])
end
}
Let me know if it works for you! |
Will add to readme after resolving the refresh issue. I dont want to force users to use the file_watcher |
I think someone else is taking over the mainenance since lot of neovim distribution use it. |
Thanks i'll be looking forward to the new version of easy-dotnet so i can start using, really appreciate the proactiveness it makes it easy to keep using neovim. |
Done, code example added to readme |
Hi i've been exploring the possibility of using
easy-dotnet
with neo-tree with no luck or understanding on getting it working, i've tried using the sample for nvim-tree as a refrence but there's no luck. I've checked theneo-tree
docs and could not see any refrence toon_attach
, any assistance would be appreciated on this.The text was updated successfully, but these errors were encountered: