mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
build(flake): add sumneko lsp in PATH
and reformatted the file
This commit is contained in:
parent
12fe197cff
commit
29cd072351
@ -23,7 +23,8 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
# a development binary to help debug issues
|
# a development binary to help debug issues
|
||||||
neovim-debug = let
|
neovim-debug =
|
||||||
|
let
|
||||||
stdenv = if pkgs.stdenv.isLinux then pkgs.llvmPackages_latest.stdenv else pkgs.stdenv;
|
stdenv = if pkgs.stdenv.isLinux then pkgs.llvmPackages_latest.stdenv else pkgs.stdenv;
|
||||||
in
|
in
|
||||||
((neovim.override {
|
((neovim.override {
|
||||||
@ -39,7 +40,7 @@
|
|||||||
"-DMIN_LOG_LEVEL=0"
|
"-DMIN_LOG_LEVEL=0"
|
||||||
];
|
];
|
||||||
|
|
||||||
disallowedReferences = [];
|
disallowedReferences = [ ];
|
||||||
}));
|
}));
|
||||||
|
|
||||||
# for neovim developers, beware of the slow binary
|
# for neovim developers, beware of the slow binary
|
||||||
@ -68,7 +69,9 @@
|
|||||||
inherit system;
|
inherit system;
|
||||||
};
|
};
|
||||||
|
|
||||||
pythonEnv = pkgs.python3.withPackages(ps: [
|
lua = pkgs.lua5_1;
|
||||||
|
|
||||||
|
pythonEnv = pkgs.python3.withPackages (ps: [
|
||||||
ps.msgpack
|
ps.msgpack
|
||||||
ps.flake8 # for 'make pylint'
|
ps.flake8 # for 'make pylint'
|
||||||
]);
|
]);
|
||||||
@ -80,12 +83,14 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
checks = {
|
checks = {
|
||||||
pylint = pkgs.runCommandNoCC "pylint" {
|
pylint = pkgs.runCommandNoCC "pylint"
|
||||||
|
{
|
||||||
nativeBuildInputs = [ pythonEnv ];
|
nativeBuildInputs = [ pythonEnv ];
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
} "make -C ${./..} pylint > $out";
|
} "make -C ${./..} pylint > $out";
|
||||||
|
|
||||||
shlint = pkgs.runCommandNoCC "shlint" {
|
shlint = pkgs.runCommandNoCC "shlint"
|
||||||
|
{
|
||||||
nativeBuildInputs = [ pkgs.shellcheck ];
|
nativeBuildInputs = [ pkgs.shellcheck ];
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
} "make -C ${./..} shlint > $out";
|
} "make -C ${./..} shlint > $out";
|
||||||
@ -100,12 +105,13 @@
|
|||||||
|
|
||||||
defaultApp = apps.nvim;
|
defaultApp = apps.nvim;
|
||||||
|
|
||||||
devShell = let
|
devShells = {
|
||||||
in
|
default = pkgs.neovim-developer.overrideAttrs (oa: {
|
||||||
pkgs.neovim-developer.overrideAttrs(oa: {
|
|
||||||
|
|
||||||
buildInputs = with pkgs; oa.buildInputs ++ [
|
buildInputs = with pkgs; oa.buildInputs ++ [
|
||||||
cmake
|
cmake
|
||||||
|
lua.pkgs.luacheck
|
||||||
|
sumneko-lua-language-server
|
||||||
pythonEnv
|
pythonEnv
|
||||||
include-what-you-use # for scripts/check-includes.py
|
include-what-you-use # for scripts/check-includes.py
|
||||||
jq # jq for scripts/vim-patch.sh -r
|
jq # jq for scripts/vim-patch.sh -r
|
||||||
@ -133,5 +139,6 @@
|
|||||||
cp -f ${pkgs.tree-sitter.builtGrammars.tree-sitter-c}/parser runtime/parser/c.so
|
cp -f ${pkgs.tree-sitter.builtGrammars.tree-sitter-c}/parser runtime/parser/c.so
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user