Ignore lua-ls warnings about missing-fields

This commit is contained in:
Kenneth Benzie 2024-03-03 22:43:39 +00:00
parent 97cfaddce8
commit 0c9780cdd5
2 changed files with 13 additions and 1 deletions

View File

@ -32,6 +32,18 @@ return {
function(server_name) function(server_name)
require('lspconfig')[server_name].setup({}) require('lspconfig')[server_name].setup({})
end, end,
['lua_ls'] = function()
local lspconfig = require('lspconfig')
lspconfig.lua_ls.setup({
settings = {
Lua = {
diagnostics = {
disable = { "missing-fields" },
}
}
}
})
end
}, },
}) })

View File

@ -1,4 +1,4 @@
return{ return {
'kylechui/nvim-surround', 'kylechui/nvim-surround',
version = "*", -- Use for stability; omit to use `main` branch for the latest features version = "*", -- Use for stability; omit to use `main` branch for the latest features
event = "VeryLazy", event = "VeryLazy",