mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
split vim support tools to separate package
This commit is contained in:
parent
c9af9f0521
commit
c031a7a63f
9 changed files with 34 additions and 21 deletions
|
@ -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
25
pkgs/bck-nvim-tools.nix
Normal 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
7
pkgs/bck-nvim.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ callPackage }:
|
||||
|
||||
callPackage ./bck-nvim-base {
|
||||
extraBinPaths = [
|
||||
(callPackage ./bck-nvim-tools.nix { })
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue