plugins/lsp: Use the auto-generated lsp plugin list

This commit is contained in:
Quentin Boyer 2024-10-05 15:55:49 +02:00
parent c79bfb75da
commit 8e8d9afe8e
11 changed files with 172 additions and 679 deletions

View file

@ -6,10 +6,10 @@
}:
with lib;
let
cfg = config.plugins.lsp.servers.rust-analyzer;
cfg = config.plugins.lsp.servers.rust_analyzer;
in
{
options.plugins.lsp.servers.rust-analyzer = {
options.plugins.lsp.servers.rust_analyzer = {
# https://github.com/nix-community/nixvim/issues/674
installCargo = mkOption {
type = with types; nullOr bool;
@ -35,21 +35,21 @@ in
warnings =
(optional (cfg.installCargo == null) ''
`rust_analyzer` relies on `cargo`.
- Set `plugins.lsp.servers.rust-analyzer.installCargo = true` to install it automatically
- Set `plugins.lsp.servers.rust_analyzer.installCargo = true` to install it automatically
with Nixvim.
You can customize which package to install by changing
`plugins.lsp.servers.rust-analyzer.cargoPackage`.
- Set `plugins.lsp.servers.rust-analyzer.installCargo = false` to not have it install
`plugins.lsp.servers.rust_analyzer.cargoPackage`.
- Set `plugins.lsp.servers.rust_analyzer.installCargo = false` to not have it install
through Nixvim.
By doing so, you will dismiss this warning.
'')
++ (optional (cfg.installRustc == null) ''
`rust_analyzer` relies on `rustc`.
- Set `plugins.lsp.servers.rust-analyzer.installRustc = true` to install it automatically
- Set `plugins.lsp.servers.rust_analyzer.installRustc = true` to install it automatically
with Nixvim.
You can customize which package to install by changing
`plugins.lsp.servers.rust-analyzer.rustcPackage`.
- Set `plugins.lsp.servers.rust-analyzer.installRustc = false` to not have it install
`plugins.lsp.servers.rust_analyzer.rustcPackage`.
- Set `plugins.lsp.servers.rust_analyzer.installRustc = false` to not have it install
through Nixvim.
By doing so, you will dismiss this warning.
'');