summaryrefslogtreecommitdiffstats
path: root/.config/nvim
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-05-19 18:53:17 +0200
committerThomas Vanbesien <tvanbesi@proton.me>2026-05-19 18:53:17 +0200
commita146a3dee5260d1352fe34b1b60dbe8aa5a1d68a (patch)
treec8f8eddce88dbaaca84654216947f3f96f87d51e /.config/nvim
parent601bdd23a87c71dac8e4c59474c5915db676190f (diff)
downloaddotfiles-a146a3dee5260d1352fe34b1b60dbe8aa5a1d68a.tar.gz
dotfiles-a146a3dee5260d1352fe34b1b60dbe8aa5a1d68a.zip
feat(nvim): add .luarc.json pointing lua_ls at the Neovim runtime
Sets workspace.library to $VIMRUNTIME so any lua_ls launcher resolves the `vim` global and vim.api.keyset.* types from the shipped ---@meta stubs, instead of flagging them as undefined. Read by lua_ls regardless of launcher (Neovim, external tooling).
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/.luarc.json8
1 files changed, 8 insertions, 0 deletions
diff --git a/.config/nvim/.luarc.json b/.config/nvim/.luarc.json
new file mode 100644
index 0000000..1f2ccaf
--- /dev/null
+++ b/.config/nvim/.luarc.json
@@ -0,0 +1,8 @@
+{
+ "$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
+ "runtime.version": "LuaJIT",
+ "workspace.checkThirdParty": false,
+ "workspace.library": [
+ "/home/tvanbesi/.local/share/nvim/share/nvim/runtime"
+ ]
+}