aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.luarc.json14
-rw-r--r--lua/plugins/lsp.lua3
-rw-r--r--nvim-pack-lock.json4
3 files changed, 7 insertions, 14 deletions
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"