mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-23 04:05:06 +02:00
plugins/nixd: Adapt to new options
Note that due to the structure of the code we can't introduce deprecation warnings, it results in: cannot find attribute `plugins.lsp.servers.nixd.settings.XXX`
This commit is contained in:
parent
2fd3a0493c
commit
908932b53c
3 changed files with 55 additions and 59 deletions
|
@ -4,11 +4,13 @@
|
|||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
}@args:
|
||||
with lib;
|
||||
let
|
||||
lspHelpers = import ../helpers.nix { inherit lib config pkgs; };
|
||||
|
||||
nixdSettings = import ./nixd.nix args;
|
||||
|
||||
servers = [
|
||||
{
|
||||
name = "ansiblels";
|
||||
|
@ -408,6 +410,7 @@ let
|
|||
description = "nixd for Nix";
|
||||
package = pkgs.nixd;
|
||||
settings = cfg: { nixd = cfg; };
|
||||
settingsOptions = nixdSettings.options;
|
||||
}
|
||||
{
|
||||
name = "nushell";
|
||||
|
@ -660,10 +663,11 @@ in
|
|||
imports = lib.lists.map lspHelpers.mkLsp servers ++ [
|
||||
./ccls.nix
|
||||
./efmls-configs.nix
|
||||
./nixd.nix
|
||||
./pylsp.nix
|
||||
./rust-analyzer.nix
|
||||
./svelte.nix
|
||||
./vls.nix
|
||||
];
|
||||
|
||||
config = lib.mkMerge [ nixdSettings.config ];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue