Added static analysis tooling

This commit is contained in:
2025-12-22 15:10:01 +00:00
parent f9cd8a477c
commit 94c3b2e55e
2 changed files with 16 additions and 0 deletions

13
.luarc.json Normal file
View File

@@ -0,0 +1,13 @@
{
"diagnostics.globals": ["vim"],
"diagnostics.severity": {
"undefined-global": "Error",
"codestyle-check": "Warning"
},
"workspace.library": [
"$VIMRUNTIME/lua",
"$VIMRUNTIME/lua/vim/lsp",
"~/.local/share/nvim/lazy"
],
"workspace.checkThirdParty": "Apply"
}

View File

@@ -7,10 +7,13 @@
}: {
packages = [
pkgs.git
pkgs.lua-language-server
pkgs.selene
pkgs.stylua
];
scripts.typecheck.exec = "lua-language-server --check=. --checklevel=Warning";
languages.lua.enable = true;
git-hooks.hooks = {