mirror of
https://github.com/Cian-H/my_nvim_config.git
synced 2026-01-06 18:21:57 +00:00
Added static analysis tooling
This commit is contained in:
13
.luarc.json
Normal file
13
.luarc.json
Normal 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"
|
||||
}
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user