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 = {