From 94c3b2e55e831efc791ca631ec0c4eaa510679da Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Mon, 22 Dec 2025 15:10:01 +0000 Subject: [PATCH] Added static analysis tooling --- .luarc.json | 13 +++++++++++++ devenv.nix | 3 +++ 2 files changed, 16 insertions(+) create mode 100644 .luarc.json diff --git a/.luarc.json b/.luarc.json new file mode 100644 index 0000000..67dcdf1 --- /dev/null +++ b/.luarc.json @@ -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" +} diff --git a/devenv.nix b/devenv.nix index a4dfad3..d8186c6 100644 --- a/devenv.nix +++ b/devenv.nix @@ -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 = {