Commit graph

18 commits

Author SHA1 Message Date
sportshead
6a054de04d plugins/lsp: add packageFallback option
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Build unstable (push) Waiting to run
Documentation / Build 24.11 (push) Waiting to run
Documentation / Build 25.05 (push) Waiting to run
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
https://github.com/nix-community/nixvim/pull/3445#pullrequestreview-2908615597
2025-06-16 17:19:27 +00: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
Quentin Boyer
a2f01876f7 lib: Harmonize package options which may not exist in nixpkgs 2025-01-31 22:55:38 +00:00
Matt Sturgeon
796ace65f7
plugins/lsp: set a defaultText for cmd 2025-01-25 19:16:08 +00:00
Heitor Augusto
a74897d033 mkLsp: remove with lib; 2025-01-06 22:20:32 +00:00
Heitor Augusto
5201bb2f6f mkLsp: helpers -> lib.nixvim 2025-01-06 22:20:32 +00:00
Matt Sturgeon
896f6be694
lib/plugins: take ownership of modules utils
These util functions were previously defined in `modules`, but
`plugins.utils` is a better home.
2024-12-22 09:35:16 +00:00
Matt Sturgeon
63cfc84abe
lib/modules: add applyExtraConfig
Used for
- mkVimPlugin: extraConfig
- mkNeovimPlugin: extraConfig
- mkLsp: extraConfig
- mkLsp: settings
- mkExtension (telecsope): extraConfig
2024-11-20 20:55:16 +00:00
traxys
c674f10d18 plugins/lsp: Correctly mark servers as disabled if the lsp plugin is disabled 2024-11-19 12:07:42 +01:00
traxys
31eb9d8d75 plugins/lsp: Fix extra config of lsp servers 2024-11-19 12:07:42 +01:00
Matt Sturgeon
88302aa17a
plugins/lsp: use a no-default option when there is no default provided 2024-10-10 20:25:03 +01:00
Quentin Boyer
8e8d9afe8e plugins/lsp: Use the auto-generated lsp plugin list 2024-10-08 21:29:43 +02:00
Matt Sturgeon
9c11b54065
plugins/lsp/servers: use lib.mkPackageOption 2024-09-04 03:29:35 +01:00
Gaetan Lepage
7a2d065cce misc: ensure all options have a description 2024-06-11 11:34:10 +02:00
Matt Sturgeon
2ce578e35f
docs/lsp: Show LSP server homepage URLs
Using `meta.nixvimInfo`
2024-06-07 22:22:56 +01:00
Matt Sturgeon
0a24327632
plugins/lsp: automatically add serverName alias
A warning will be printed if the `serverName` alias is used, which may
help new users to figure out the correct `plugins.lsp.servers.*` name.
2024-06-03 20:56:37 +01:00
Gaetan Lepage
e97755be47 plugins/lsp/language-servers: add extraOptions argument to mkLsp 2024-05-15 23:13:33 +02:00
Gaetan Lepage
2705ce0ec6 plugins/lsp/language-servers: harmless refactor 2024-05-15 08:44:25 +02:00