-
-
Notifications
You must be signed in to change notification settings - Fork 598
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
Not disable netrw #47
Comments
well netrw opens automatically and it can conflict with other trees. I'll try and see if i can come up with a solution. |
Well i'm sorry but i cannot enable the netrw, i don't really use the |
Can we at least have an option for it? And btw, I'm writing a plugin to replace |
if you do not disable netrw then it will open every time you do vim $DIR which will not be convenient at all. What would be your use cases to keep netrw ? |
Mainly just to keep the original |
well you can patch it locally if you want, but it seems weird to me that a tree viewer provides that kind of feature anyway. You could provide a global mapper with your |
My plugin already maps gx globally, so I shouldn't need the original gx in most cases. But I think this should be mentioned in the docs at least, so users don't get a surprise when trying to use |
i'll add that then :) |
Here's a mapping that will load netrw only on demand when using gx: nnoremap gx :call <sid>open_url()<CR>
function! s:open_url() abort
unlet! g:loaded_netrw
unlet! g:loaded_netrwPlugin
runtime! plugin/netrwPlugin.vim
return netrw#BrowseX(expand('<cfile>'), netrw#CheckIfRemote())
endfunction |
Is there a reason why netrw is being disabled?
gx
doesn't work without it in other buffers.https://github.com/kyazdani42/nvim-tree.lua/blob/3bcfc70ea6759f40cc12e31e20f8b6c36f9ed2ac/plugin/tree.vim#L6-L7
The text was updated successfully, but these errors were encountered: