split vim support tools to separate package

This commit is contained in:
Sean Buckley 2024-07-29 23:14:58 -04:00
parent c9af9f0521
commit c031a7a63f
9 changed files with 34 additions and 21 deletions

View file

@ -1,17 +1,8 @@
{ lib
, extraBinPaths ? [ ]
, neovim-unwrapped
, vimPlugins
, wrapNeovim
# LSP
, black
, efm-langserver
, lua-language-server
, nil
, nodePackages
, pyright
, vscode-langservers-extracted
, yaml-language-server
}:
let
@ -22,17 +13,7 @@ let
extraPath = lib.concatLines (map
(p: "let $PATH .= ':${p}/bin'")
[
black
efm-langserver
lua-language-server
nil
nodePackages.prettier
nodePackages.typescript-language-server
pyright
vscode-langservers-extracted
yaml-language-server
]
(extraBinPaths)
);
in

25
pkgs/bck-nvim-tools.nix Normal file
View file

@ -0,0 +1,25 @@
{ symlinkJoin
, black
, efm-langserver
, lua-language-server
, nil
, nodePackages
, pyright
, vscode-langservers-extracted
, yaml-language-server
}:
symlinkJoin {
name = "bck-nvim-tools";
paths = [
black
efm-langserver
lua-language-server
nil
nodePackages.prettier
nodePackages.typescript-language-server
pyright
vscode-langservers-extracted
yaml-language-server
];
}

7
pkgs/bck-nvim.nix Normal file
View file

@ -0,0 +1,7 @@
{ callPackage }:
callPackage ./bck-nvim-base {
extraBinPaths = [
(callPackage ./bck-nvim-tools.nix { })
];
}