-
Notifications
You must be signed in to change notification settings - Fork 251
nvim-tree feature migration #211
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
Comments
This feature does not exist. |
Yes, add this to your config: use_popups_for_input = false, -- If false, inputs will use vim.ui.input() instead of custom floats. |
If you want to open Neotree in a split, but not the current one, you can use the |
Thanks for the quick response and help! For the netrw_hijack behaviour, I was more describing the following scenario:
Running EDIT: I just came across the floating popup option and I love it, so I'm using that now (so no more |
Sorry but I think I am confused, what you describe above is the current behavior if you specify |
neotree.mp4 |
In the video above you opening nvim with two buffers, one is a file and one is a dir. The strange behavior you are experiencing is due to these facts:
I am still confused as to why you would open a file and directory at the same time. Did you want them to open in splits like the |
Thanks for the followup. I guess the question is more whether it's possible to make the hijacked buffer "listed" rather than "unlisted". The main thing I want to do is navigate between my buffers after directory view is hijacked (which does not work from the video).
For my workflow, I like to open nvim with the files/directories which I will be working on, then further selecting the files within directories to open (eliminates the need to find and search for the subfiles). In this case, I would like the directory listing to be treated as an "active" buffer (like for a normal file opened to the full-width of the editor). Sorry for the confusion! |
OK, in that case all you need is the ability to override the local options with a |
Oo I just tried adding nt2.mp4 |
Because I use my own event system, the timing can be a little off. This will work around that:
|
Works perfectly now. Thank you so much for the followup help! |
@cseickel apologies for hijacking the issue, but it seems like it's related to latest discussion here. I have following vim.api.nvim_create_autocmd({ 'WinEnter', 'BufWinEnter' }, {
pattern = 'NvimTree_*',
callback = function()
vim.api.nvim_command 'highlight! Cursor blend=100'
vim.opt.guicursor = { 'n:Cursor/lCursor', 'v-c-sm:block', 'i-ci-ve:ver25', 'r-cr-o:hor2' }
end,
})
vim.api.nvim_create_autocmd({ 'BufLeave', 'WinClosed' },{
pattern = 'NvimTree_*',
callback = function()
vim.api.nvim_command 'highlight! Cursor blend=NONE'
vim.opt.guicursor = { 'n-v-c-sm:block', 'i-ci-ve:ver25', 'r-cr-o:hor20' }
end,
}) I tried to replicate the same for neo-tree by changing |
@gegoune, see #155 (comment) That code is in main right now, I will probably release it to 2.x tomorrow. |
@cseickel Perfect, that's working as expected now, thanks! |
Hi, I'm currently migrating from nvim-tree and was wondering whether the following features are supported (feature requests if not):
The text was updated successfully, but these errors were encountered: