build(flake): add sumneko lsp in PATH

and reformatted the file
This commit is contained in:
Matthieu Coudron 2022-09-03 00:13:39 +02:00
parent 12fe197cff
commit 29cd072351

View File

@ -23,7 +23,8 @@
});
# 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;
in
((neovim.override {
@ -39,7 +40,7 @@
"-DMIN_LOG_LEVEL=0"
];
disallowedReferences = [];
disallowedReferences = [ ];
}));
# for neovim developers, beware of the slow binary
@ -68,7 +69,9 @@
inherit system;
};
pythonEnv = pkgs.python3.withPackages(ps: [
lua = pkgs.lua5_1;
pythonEnv = pkgs.python3.withPackages (ps: [
ps.msgpack
ps.flake8 # for 'make pylint'
]);
@ -80,12 +83,14 @@
};
checks = {
pylint = pkgs.runCommandNoCC "pylint" {
pylint = pkgs.runCommandNoCC "pylint"
{
nativeBuildInputs = [ pythonEnv ];
preferLocalBuild = true;
} "make -C ${./..} pylint > $out";
shlint = pkgs.runCommandNoCC "shlint" {
shlint = pkgs.runCommandNoCC "shlint"
{
nativeBuildInputs = [ pkgs.shellcheck ];
preferLocalBuild = true;
} "make -C ${./..} shlint > $out";
@ -100,12 +105,13 @@
defaultApp = apps.nvim;
devShell = let
in
pkgs.neovim-developer.overrideAttrs(oa: {
devShells = {
default = pkgs.neovim-developer.overrideAttrs (oa: {
buildInputs = with pkgs; oa.buildInputs ++ [
cmake
lua.pkgs.luacheck
sumneko-lua-language-server
pythonEnv
include-what-you-use # for scripts/check-includes.py
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
'';
});
};
});
}