1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
-- Config for a Lua language server. return { settings = { Lua = { diagnostics = { globals = { "vim" }, }, workspace = { library = { [vim.fn.expand "$VIMRUNTIME/lua"] = true, [vim.fn.stdpath "config" .. "/lua"] = true, }, }, }, }, }