1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 19:46:06 +01:00
Commit graph

343 commits

Author SHA1 Message Date
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-png
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 Lepage
cd63e6c918 plugins/lsp/lsp-packages: pkgs.atopile now exists 2025-10-05 13:29:19 +00:00
Jeremy Fleischman
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
Culottes
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 Sturgeon
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 Sturgeon
1c802b3efe plugins/lsp: simplify extraSettings deprecation 2025-09-28 23:24:22 +00:00
saygo-png
c4b27080a6 treewide: infer packPathName menial work
Signed-off-by: saygo-png <saygo.mail@proton.me>
2025-09-27 23:49:59 +00:00
will
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 Yuan
e03ede7138 plugins/lsp: fix volar tsls integration location 2025-08-23 02:23:13 +00:00
Gaetan 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 Lepage
8529f1c86b treewide: format with new treefmt 2025-07-25 16:18:00 +00:00
Sandro Jäckel
0c50ed9349 lsp-packages: rename starpls-bin to starpls
starpls-bin is an alias since Nov 2024
0b7768a68c
2025-07-20 02:01:01 +00:00
sportshead
6a054de04d plugins/lsp: add packageFallback option
https://github.com/nix-community/nixvim/pull/3445#pullrequestreview-2908615597
2025-06-16 17:19:27 +00:00
Gaetan Lepage
98d9c173fc plugins/lsp: mark laravel_ls as unpackaged 2025-05-19 00:26:01 +02:00
Heitor Augusto
1deeb7f689
plugins/lsp: add package for luau_lsp 2025-05-17 12:32:21 -03:00
Matt Sturgeon
10f899d669
plugins/lsp: correct motivation for onAttach alias impl
Previously I said we alias the definitions instead of the value to allow
`mkOrder` to work correctly. That is incorrect, as order-priorities are
already sorted in `<opt>.definitions`.

The actual reason to use the definitions instead of the final value is
to avoid inf-recursion. The "from" option's `apply` function would read
the "to" option's value, which is defined based on the "from" option's
value, which is set by the "from" option's apply function...

For a one-way binding, `mkDerivedConfig` is best. For a two-way binding,
`mkAliasAndWrapDefsWithPriority` is necessary.
2025-05-08 15:51:18 +01:00
Matt Sturgeon
5c52e8f9e4
plugins.lsp: alias onAttach to new lsp.onAttach
This simplifies the impl by doing global on-attach logic in a
`LspAttach` autocmd instead of adding lua lines to each server's
individual `on_attach` callback.

This is effectively a `mkAliasOptionModule` alias, other than the alias
only being applied when `plugins.lsp.enable`.
2025-05-07 14:51:45 +01:00
Gaetan Lepage
9e0d2e4bed plugins/lsp: rename lua scope to nvim-lspconfig 2025-04-28 18:11:39 +02:00
Matt Sturgeon
3ea2ce7ff6
Revert "plugins/lsp: use vim.lsp native API"
This reverts commit 78f6ff0369.

From PR https://github.com/nix-community/nixvim/pull/3204
2025-04-28 13:08:48 +01:00
Gaetan Lepage
8d8a856896 plugins/lsp: remove unused internal enabledServers.*.capabilities option 2025-04-26 21:52:14 +02:00
Matt Sturgeon
c3a42a7ac4
plugins/lsp: remove standalonePlugins default
We don't need to add `plugins.lsp` to
`performance.combinePlugins.standalonePlugins`
now that `/lsp` is included in `pathsToLink`.
2025-04-26 19:55:38 +01:00
Gaetan Lepage
f0ec773869 plugins/lsp: simplify implementation of per-server capabilities 2025-04-27 04:40:24 +10:00
Gaetan Lepage
2e559d3c3a plugins/lsp: simplify implementation of inlayHints 2025-04-26 19:35:31 +02:00
Matt Sturgeon
b72ba2e4e2
plugins/lsp/servers: replace rootDir with rootMarkers
nvim-lspconfig historically used `root_dir`, along with util functions
like `root_pattern`.

Now that neovim's own LSP API is used, `root_dir` appears to be subtly
different and `root_markers` is introduced to replace `util.root_pattern`.

Since we cannot easily warn about the `root_dir` differences, it can
usually be replaced with `root_markers`, and can still be manually
configured via `extraOptions` if needed; the simplest approach here is
to remove the `rootDir` option.
2025-04-25 16:04:38 +01:00
Gaetan Lepage
b56177333d plugins/lsp: mark ruff_lsp as unpackaged 2025-04-24 12:48:41 +02:00
Gaetan Lepage
3c37b39a7b plugins/lsp: add package for just-lsp 2025-04-24 12:48:41 +02:00
Gaetan Lepage
78f6ff0369 plugins/lsp: use vim.lsp native API 2025-04-23 15:36:09 +02:00
Gaetan Lepage
e91333ae56 plugins/lsp: remove string support for plugins.lsp.enabledServers elements 2025-04-23 09:54:47 +02:00
Austin Horstman
ca5145cdb6 plugins/lsp-packages: add unpackaged 2025-04-20 07:55:12 +10:00
Gaetan Lepage
7e6038a69a modules/dependencies: add go 2025-04-11 08:51:45 +10:00
Gaetan Lepage
5908b5a737 plugins/lsp: register pkgs.vectorcode for vectorcode_server 2025-04-06 10:32:48 +02:00
github-actions[bot]
3f73a301d6 generated: Updated lspconfig-servers.json 2025-04-01 16:03:03 +02:00
Gaetan Lepage
8176b3f52e plugins/lsp/packages: remove qml_lsp
https://github.com/neovim/nvim-lspconfig/pull/3647
2025-03-22 12:13:24 +00:00
Gaetan Lepage
9bdc870ff7 plugins/lsp/packages: add muon
https://github.com/neovim/nvim-lspconfig/pull/3646
2025-03-22 12:13:24 +00:00
Yifei Sun
f78adb0918
plugins/lsp: enable dolmenls and ocamllsp 2025-03-18 20:44:33 -04:00
Gaetan Lepage
c15e93c157 plugins/lsp/packages: mark coqPackages.{coq-lsp,vscoq-language-server} as unpackaged 2025-03-19 00:51:22 +01:00
Gaetan Lepage
e8025891b2 plugins/lsp/packages: mark graphql as unpackaged 2025-03-19 00:51:22 +01:00
Gaetan Lepage
b8f8d4c81b plugins/lsp/packages: mark dts_lsp and wasm_language_tools as unpackaged 2025-03-19 00:51:22 +01:00
Gaetan Lepage
2a3cf1bd55 plugins/lsp: marked scry as unpackaged 2025-03-19 00:51:22 +01:00
Gaetan Lepage
72365ae5a1 plugins/lsp: skip failing pylsp test 2025-03-19 00:51:22 +01:00
github-actions[bot]
32c63161d7 generated: Update
- Updated lspconfig-servers.json
- Updated rust-analyzer.nix
2025-03-19 00:51:22 +01:00
Quentin Boyer
a2f01876f7 lib: Harmonize package options which may not exist in nixpkgs 2025-01-31 22:55:38 +00:00