add nvchad string to sumneko globals
This commit is contained in:
parent
5a1240be82
commit
c0ca91cb92
@ -16,19 +16,22 @@ function M.on_attach(client, _)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||||
capabilities.textDocument.completion.completionItem.documentationFormat = { "markdown", "plaintext" }
|
|
||||||
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
capabilities.textDocument.completion.completionItem = {
|
||||||
capabilities.textDocument.completion.completionItem.preselectSupport = true
|
documentationFormat = { "markdown", "plaintext" },
|
||||||
capabilities.textDocument.completion.completionItem.insertReplaceSupport = true
|
snippetSupport = true,
|
||||||
capabilities.textDocument.completion.completionItem.labelDetailsSupport = true
|
preselectSupport = true,
|
||||||
capabilities.textDocument.completion.completionItem.deprecatedSupport = true
|
insertReplaceSupport = true,
|
||||||
capabilities.textDocument.completion.completionItem.commitCharactersSupport = true
|
labelDetailsSupport = true,
|
||||||
capabilities.textDocument.completion.completionItem.tagSupport = { valueSet = { 1 } }
|
deprecatedSupport = true,
|
||||||
capabilities.textDocument.completion.completionItem.resolveSupport = {
|
commitCharactersSupport = true,
|
||||||
properties = {
|
tagSupport = { valueSet = { 1 } },
|
||||||
"documentation",
|
resolveSupport = {
|
||||||
"detail",
|
properties = {
|
||||||
"additionalTextEdits",
|
"documentation",
|
||||||
|
"detail",
|
||||||
|
"additionalTextEdits",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +42,7 @@ lspconfig.sumneko_lua.setup {
|
|||||||
settings = {
|
settings = {
|
||||||
Lua = {
|
Lua = {
|
||||||
diagnostics = {
|
diagnostics = {
|
||||||
globals = { "vim" },
|
globals = { "vim", "nvchad" },
|
||||||
},
|
},
|
||||||
workspace = {
|
workspace = {
|
||||||
library = {
|
library = {
|
||||||
|
Loading…
Reference in New Issue
Block a user