Open Jasha10 opened 1 year ago
Actually I'm still seeing some issues after changing to BufEnter
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 https://github.com/aymericbeaumet/vim-symlink/issues/14. See my 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).
To install
vim-symlink
from my personal fork to test out this PR:Install with packer:
Install with lazy.nvim:
Install with vim-plug:
Details
Here are the things I tried: