From b27714866fce8f00621b12b5baf9611c3c930bba Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Tue, 21 Oct 2025 21:04:04 +0200 Subject: [PATCH] feat: .lua_ls.rc won't fix all issues --- .luarc.json | 14 -------------- lua/plugins/lsp.lua | 3 +++ nvim-pack-lock.json | 4 ++++ 3 files changed, 7 insertions(+), 14 deletions(-) delete mode 100644 .luarc.json diff --git a/.luarc.json b/.luarc.json deleted file mode 100644 index 96d006c..0000000 --- a/.luarc.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "runtime.version": "LuaJIT", - "runtime.path": [ - "lua/?.lua", - "lua/?.init.lua" - ], - "diagnostics.globals": [ - "vim" - ], - "workspace.checkThirdParty": false, - "workspace.library": [ - "$VIMRUNTIME" - ] -} diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index ceef42a..051662c 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -34,3 +34,6 @@ vim.lsp.enable({ -- diagnostic settings vim.diagnostic.config({ virtual_text = true }) + +-- fix annoying lua lsp errors +require("lazydev").setup() diff --git a/nvim-pack-lock.json b/nvim-pack-lock.json index 8d2582e..93b6c2f 100644 --- a/nvim-pack-lock.json +++ b/nvim-pack-lock.json @@ -4,6 +4,10 @@ "rev": "5e0a460", "src": "https://github.com/ellisonleao/gruvbox.nvim" }, + "lazydev.nvim": { + "rev": "e28ce52", + "src": "https://github.com/folke/lazydev.nvim" + }, "mini.nvim": { "rev": "cf32454", "src": "https://github.com/nvim-mini/mini.nvim"