nixvim icon indicating copy to clipboard operation
nixvim copied to clipboard

plugins/ltes-extra: support ltex_plus

Open Kirens opened this issue 1 year ago • 4 comments

ltex_extra reacently got support for ltex_plus, a more updated and still maintained fork of ltex (https://github.com/barreiroleo/ltex_extra.nvim/pull/66)

This PR adds support for both ltex, and ltex_plus, but defaults to using ltex_plus if neither is enabled. I've tried adding a warning of the change to notify users who depend on the implicit enabling of ltex.

I'm open to suggestions if there are other approaches to similar situations in Nixvim.

Kirens avatar Mar 30 '25 13:03 Kirens

I've added options to the ltex_plus language server. Maybe I should split this into two PRs.

Tests previously failed due to ltex.enable not being masked properly. That is now fixed

Kirens avatar Mar 30 '25 16:03 Kirens

I've added options to the ltex_plus language server. Maybe I should split this into two PRs.

Tests previously failed due to ltex.enable not being masked properly. That is now fixed

First, thanks for the good work, this is looking great! When it comes to option, I don't think that it is worth it to explicitly declare them. It is already possible for users to put whatever they want in settings. It adds a maintenance load on Nixvim. I would recommend to drop this part.

GaetanLepage avatar Mar 30 '25 22:03 GaetanLepage

@nix-community/nixvim can someone double-check this PR please? Espacially the warnings logic.

GaetanLepage avatar Mar 30 '25 22:03 GaetanLepage

Changes based on feedback.

Made the warning logic identify additional definitions of lsp.servers.ltex to those produced by nixvim modules. This may produce false positives as it doesn't take priority into account, but keeps it at a reasonable complexity.

The formatting is a bit awkward for the warning. I guess it's sufficient this for temporary code, however.

Kirens avatar Mar 31 '25 22:03 Kirens