gamoutatsumi / dps-ghosttext.vim

GhostText plugin powered by denops.vim
MIT License
27 stars 3 forks source link

Conflict with lexima.vim #5

Closed kg8m closed 2 years ago

kg8m commented 2 years ago

Hi. Thank you for this great plugin! dps-ghosttext.vim helps my Vim life.

I found a conflict with https://github.com/cohama/lexima.vim. dps-ghosttext.vim sets buftype=nofile but lexima.vim doesn't work if buftype=nofile. cf. https://github.com/cohama/lexima.vim/blob/fbc05de53ca98b7f36a82f566db1df49864e58ef/autoload/lexima/insmode.vim#L146-L148

I think there are some choices:

  1. Don't use buftype=nofile and use buftype=nowrite instead
  2. Add a User autocommand like User dps-ghosttext-open and allow users to customize the ghosttext buffer
  3. Change lexima.vim's behavior

I can create a pull request if you are positive the 1. or 2.. Could you please tell me your thoughts?

Best regards.

kg8m commented 2 years ago

lexima.vim has updated and this issue is fixed now. Thank you!

cf. https://github.com/cohama/lexima.vim/commit/dce649d7637ec034ecb19bbca168aa3d561bd740