Skip to content

Fix neovim crashes #4

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

Closed
wants to merge 1 commit into from
Closed

Fix neovim crashes #4

wants to merge 1 commit into from

Conversation

svilenb
Copy link

@svilenb svilenb commented Jun 19, 2025

By adding a check for vim9script the plugin doesn't crash for neovim or older vim versions

@bfrg
Copy link
Owner

bfrg commented Jun 29, 2025

Since this is a fairly new Vim plugin, I'm assuming everyone has access to a newer Vim version. Vim9script has been out for a few years now.

If you really are using Neovim or a very old Vim version, you can place the plugin under the opt/ directory, like ~/.config/vim/pack/*/opt/vim-qf-diagnostics, where * can be any directory (I use plugins). In your vimrc add:

if has('vim9script')
    packadd vim-qf-diagnostics
endif

For more details, see :h :packadd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants