Add workspace.library option for sumneko_lua lsp server

This commit is contained in:
2021-11-16 22:42:37 +03:00
parent 0815116364
commit 1454d58f86

View File

@@ -94,6 +94,9 @@ lsp_installer.on_server_ready(function(server)
table.insert(opts, { table.insert(opts, {
settings = { settings = {
Lua = { Lua = {
workspace = {
library = vim.api.nvim_get_runtime_file("", true)
},
diagnostics = { diagnostics = {
globals = { "vim" } globals = { "vim" }
} }