Commit Graph
374 Commits
Author SHA1 Message Date
Matt Sturgeon caee4e5d41 plugins.lsp: restore autostart compatibility
`autostart` was a legacy nvim-lspconfig option controlling whether a
server was automatically started for matching buffers.

Neovim's `vim.lsp.config` API does not have an `autostart` field, but
the `vim.lsp.enable()` function is effectively equivalent.

Alias legacy `plugins.lsp.servers.<name>.autostart` definitions to
`lsp.servers.<name>.activate`, which controls `vim.lsp.enable()`.
2026-06-17 16:23:37 +00:00
2kybe3andGaétan Lepage 1a380f1245 plugins/language-servers: fix warning about propagatedBuildInputs
warning: Dependency of package 'python3.13-python-lsp-server-1.14.0' uses a nested list in attribute 'propagatedBuildInputs'.
This is deprecated as of Nixpkgs release 26.05, and support will be removed in a future nixpkgs release.
2026-05-23 16:44:17 +00:00
sportsheadandMatt Sturgeon e0cd240ffd plugins/lsp: refactor 2026-05-14 18:32:53 +00:00
sportsheadandMatt Sturgeon 90962bf478 plugins/lsp/vue_ls: add vtslsIntegration option
Add a vue_ls integration by default for vtsls in addition to tsls which
is already implemented (see #3771).

Haven't added it to Volar since it is deprecated anyway (#3600)
2026-05-14 18:32:53 +00:00
Austin HorstmanandMatt Sturgeon 948b6c0125 plugins/lsp: add capabilities example 2026-04-24 06:12:39 +00:00
Gaetan LepageandMatt Sturgeon 4c09a1ac2d treewide: apply updated treefmt 2026-01-24 06:08:49 +00:00
Gaetan LepageandAustin Horstman 1d333fc92e treewide: apply linter suggestions 2025-12-28 04:26:49 +00:00
Gaetan Lepage ac9833fdcd plugins/language-servers/rust-analyzer: drop rust-analyer settings options 2025-12-21 23:30:07 +00:00
Gaetan Lepage 814894ba73 plugins/lsp/servers/omnisharp: drop settingsOptions 2025-12-21 22:39:39 +00:00
Gaetan Lepage 47a9b29b28 plugins/lsp/servers/nixd: drop settingsOptions 2025-12-21 22:39:39 +00:00
Gaetan Lepage da95a20222 plugins/lsp/servers/nil_ls: drop settingsOptions 2025-12-21 22:39:39 +00:00
Gaetan Lepage c47ea545ba plugins/lsp/servers/ltex: drop settingsOptions 2025-12-21 22:39:39 +00:00
Gaetan Lepage 367d465b0e plugins/lsp/servers/ltex: drop settingsOptions 2025-12-21 22:39:39 +00:00
Gaetan Lepage 7772eff14b plugins/lsp/servers/jsonnet-ls: drop settingsOptions 2025-12-21 22:39:39 +00:00
Gaetan Lepage 010c0f530d plugins/lsp/servers/dartls: drop settingsOptions 2025-12-21 22:39:39 +00:00
Gaetan Lepage bdf8c04028 plugins/lsp/servers/tinymist: drop settingsOptions 2025-12-21 22:39:39 +00:00
Matt Sturgeon 882eb84c35 plugins/lsp: drop customCmd
These have all been upstreamed into nvim-lspconfig. Going forward, we
should continue that trend.

If any nix-specific `cmd`s aren't accepted in nvim-lspconfig, they can
be patched in Nixpkgs instead.
2025-12-16 14:09:46 +00:00
Matt SturgeonandGaétan Lepage c97e8e3425 modules/lsp: move packages.nix from plugins.lsp
Move plugins/lsp/lsp-packages.nix -> modules/lsp/servers/packages.nix
2025-12-13 17:19:54 +00:00
Zexin YuanandGaétan Lepage 297e2e0b65 docs: format nix examples in options 2025-12-13 08:51:26 +00:00
Gaetan Lepage a2bd97de05 plugins/lsp/lsp-packages: drop redundant cmd values 2025-12-12 09:26:10 +00:00
Gaetan LepageandMatt Sturgeon 480d35cc76 plugins/lsp/lsp-packages: update 2025-12-10 21:13:52 +00:00
Gaetan Lepage 8441008175 treewide: remove old deprecation warnings 2025-12-07 23:34:03 +00:00
Gaetan Lepage 629f9d75f8 treewide: remove with lib; 2025-12-07 22:46:34 +00:00
Gaetan Lepage 8e85c25143 plugins/lsp/lsp-packages: add package for tclsp 2025-12-04 23:55:02 +00:00
saygo-pngandMatt Sturgeon ee32f43f54 treewide: fix typos
Signed-off-by: saygo-png <saygo.mail@proton.me>
2025-12-04 23:22:21 +00:00
saygo-pngandMatt Sturgeon 03a51dbf3d treewide: NixVim/nixvim -> Nixvim
Signed-off-by: saygo-png <saygo.mail@proton.me>
2025-12-04 23:22:21 +00:00
Gaetan Lepage 1cca516a54 plugins/lsp/lsp-packages: update 2025-11-28 22:56:25 +00:00
Matt Sturgeon dad19c1238 treewide: remove internal use of helpers module arg 2025-11-19 15:22:27 +00:00
Gaetan Lepage 9256b49ec0 plugins/lsp/packages: remove bufls 2025-11-07 00:02:09 +00:00
Gaetan Lepage 7c949f2faf plugins/lsp/packages (postgres_lsp): rename nixpkgs package 2025-11-07 00:02:09 +00:00
saygo-pngandMatt Sturgeon b35e6830e0 plugins/lsp/tinymist: fix type in settings declaration
Signed-off-by: saygo-png <saygo.mail@proton.me>
2025-11-03 22:03:08 +00:00
Gaetan Lepage ecb75f49d1 lib/options (mkSettingsOption): allow more types for settingsOption when no sub-options are explicitly declared 2025-10-24 10:28:17 +00:00
Gaetan Lepage 5b3d21f672 lsp/packages: update list 2025-10-22 17:03:05 +00:00
saygo-pngandzowoq c89994b0ac treewide: generate JSON instead of Nix
Signed-off-by: saygo-png <saygo.mail@proton.me>
2025-10-19 00:31:33 +00:00
Matt Sturgeon 9f336d2d71 modules/lsp: rename server settingsconfig
See RFC: https://github.com/nix-community/nixvim/issues/3745

This effectively reverts 21688b1d2a
2025-10-09 15:31:01 +00:00
Gaetan LepageandAustin Horstman cd63e6c918 plugins/lsp/lsp-packages: pkgs.atopile now exists 2025-10-05 13:29:19 +00:00
Jeremy FleischmanandMatt Sturgeon 8fcf8a9ef1 plugins/lsp/vue_ls: add a tslsIntegration option
This new `plugins.lsp.servers.vue_ls.tslsIntegration` is a shameless
copy of of pre-existing `plugins.lsp.servers.volar.tslsIntegration`
option.

Full disclosure: I have not tested this as I use the newer `lsp` module.

I'm not sure if this fixes
https://github.com/nix-community/nixvim/issues/3600, but it's a least
part of it.
2025-10-04 18:11:20 +00:00
CulottesandMatt Sturgeon 71708a77de plugins/lsp: remove erlang-ls 2025-10-04 08:16:23 +00:00
Matt Sturgeon f63304449c plugins/lsp/lsp-packages: add defaults for new LSPs
26 new LSPs were added when we updated the update script in
b9c5a75cc6

Add a package association for all the new LSPs I was able to find a
package for.
2025-10-03 21:42:32 +00:00
Matt Sturgeon b9c5a75cc6 ci/nvim-lspconfig: migrate to the new API
This is nearly a full rewrite of the lspconfig-servers update-script,
migrating it to the new `lsp/` directory system and simplifying where
possible.

- plugins/lsp: adapt to new file format
- flake/locate-lsp-packages: update for new lspconfig file format
- generated: Updated lspconfig-servers.json
2025-10-03 20:29:49 +00:00
Matt Sturgeon 96c9775a5f plugins/lsp/volar: handle null package with ts_ls integration
The ts_ls integration needs to call `getBin cfg.package`, so the package
cannot be null.

Adds an assertion.
2025-10-03 19:34:03 +00:00
Matt Sturgeon 5c4a10093d plugins.lsp: automatically remove unsupported servers
A new update script will check which "old" files do not have an
equivalent "new" file, then the plugins.lsp module will create a
removal assertion for any servers that are listed in the generated
file.
2025-10-02 00:04:30 +00:00
Matt SturgeonandGaétan Lepage 94331cc50d plugins/lsp: use the new lsp module under the hood
- Re-implement setup wrapping and capabilities to preserve existing
  behaviour
- Alias `package` options to new lsp module
- Alias `packageFallback` options to new lsp module
- Alias `preConfig` and `postConfig` to `lsp.luaConfig`
2025-09-30 20:16:00 +00:00
Matt SturgeonandGaétan Lepage 1c802b3efe plugins/lsp: simplify extraSettings deprecation 2025-09-28 23:24:22 +00:00
saygo-pngandMatt Sturgeon c4b27080a6 treewide: infer packPathName menial work
Signed-off-by: saygo-png <saygo.mail@proton.me>
2025-09-27 23:49:59 +00:00
willandMatt Sturgeon 6dbe8877e5 plugins/lsp/packages: make ansiblels unpackaged 2025-09-25 13:31:15 +00:00
Gaetan Lepage eff48e3f6c plugins/lsp/packages: update dockerfile-language-server package name 2025-09-16 14:14:15 +00:00
Zexin YuanandAustin Horstman e03ede7138 plugins/lsp: fix volar tsls integration location 2025-08-23 02:23:13 +00:00
Gaetan LepageandGaétan Lepage 3d09c8eace plugins/lsp: use new lsp module to implement plugins.lsp.inlayHints (two-way alias) 2025-07-25 23:49:37 +00:00
Gaetan LepageandGaétan Lepage 8529f1c86b treewide: format with new treefmt 2025-07-25 16:18:00 +00:00