mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-14 06:38:44 +02:00
plugins/lsp/language-servers: harmless refactor
This commit is contained in:
parent
4530a35bad
commit
2705ce0ec6
3 changed files with 145 additions and 138 deletions
|
@ -7,8 +7,6 @@
|
|||
}@args:
|
||||
with lib;
|
||||
let
|
||||
lspHelpers = import ../helpers.nix { inherit lib config pkgs; };
|
||||
|
||||
nixdSettings = import ./nixd.nix args;
|
||||
|
||||
servers = [
|
||||
|
@ -660,14 +658,20 @@ let
|
|||
];
|
||||
in
|
||||
{
|
||||
imports = lib.lists.map lspHelpers.mkLsp servers ++ [
|
||||
./ccls.nix
|
||||
./efmls-configs.nix
|
||||
./pylsp.nix
|
||||
./rust-analyzer.nix
|
||||
./svelte.nix
|
||||
./vls.nix
|
||||
];
|
||||
imports =
|
||||
let
|
||||
mkLsp = import ./_mk-lsp.nix { inherit lib config pkgs; };
|
||||
lspModules = map mkLsp servers;
|
||||
in
|
||||
lspModules
|
||||
++ [
|
||||
./ccls.nix
|
||||
./efmls-configs.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