Skip to content

Commit

Permalink
fix(lua_ls): disable diagnostics for undefined-field (#1239)
Browse files Browse the repository at this point in the history
Signed-off-by: ayamir <[email protected]>
  • Loading branch information
ayamir authored Apr 22, 2024
1 parent 188b626 commit 904ce3b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lua/modules/configs/completion/cmp.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---@diagnostic disable: undefined-field
return function()
local icons = {
kind = require("modules.utils.icons").get("kind"),
Expand Down
2 changes: 1 addition & 1 deletion lua/modules/configs/completion/servers/lua_ls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ return {
Lua = {
diagnostics = {
globals = { "vim" },
disable = { "different-requires" },
disable = { "different-requires", "undefined-field" },
},
workspace = {
library = {
Expand Down

0 comments on commit 904ce3b

Please sign in to comment.