-
Notifications
You must be signed in to change notification settings - Fork 10
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
Error with Neovim 0.9 #14
Comments
The traceback points to local path = vim.fs.normalize(vim.api.nvim_buf_get_name(bufnr)) The traceback gives the error message Looking at the code of this ...
if exists(':Bwipeout') " vim-bbye
silent! Bwipeout
else
if &diff
echoerr "symlink.vim: 'moll/vim-bbye' is required in order for this plugin to properly work in diff mode"
return
endif
enew
bwipeout #
endif
... I suspect that the call to |
After much experimenting, I've found a workaround: Changing the EDIT: I'm still seeing some issues after changing to autocmd BufEnter * nested call s:on_buf_read(expand('<afile>'))
" Works for first file. Subsequent :edit ~/my_symlink gave error:
" python3-rplugin-host: Async request caused an error:
" Vim(sign):E158: Invalid buffer name: 4
" python3-rplugin-host: Async request caused an error:
" Invalid buffer id: 4 |
This PR replaces the `BufRead` autocmd with `BufEnter. Closes aymericbeaumet#14. See me comments on that issue. In addition to `BufEnter`, I also tried several other autocmd events: - `BufWinEnter` - `BufEnter` - `BufNew` - `BufAdd` - `BufWinEnter` All of these other attempts failed with various incorrect behavior or errors (some of which originated from other neovim plugins that I have installed).
An alternative workaround I've been using is to entirely disable Neovim's EditorConfig integration (see https://neovim.io/doc/user/editorconfig.html#editorconfig), since I use a separate EditorConfig plugin anyways for vim compatibility. |
I followed the suggestion from: aymericbeaumet/vim-symlink#14 (comment)
It doesn't like vim-symlink, and I'm using a separate plugin anyways. See aymericbeaumet/vim-symlink#14.
Hi, this plugin has been working for me perfectly for some years (so much that I had forgotten I had it installed :) ). But I think that the latest version of neovim introduced a problem:
Do you think this is a problem with neovim or with vim-symlink? Do you think that this can be fixed easily? I tried today for a while, but I am not sure where the problem might be.
The text was updated successfully, but these errors were encountered: