fix: modify client.resolved_capabilities to client.server_capabilities
This commit is contained in:
+2
-2
@@ -82,7 +82,7 @@ autocmd BufWritePre *.lua lua vim.lsp.buf.formatting_sync(nil, 100) ]]
|
|||||||
|
|
||||||
local function documentHighlight(client, bufnr)
|
local function documentHighlight(client, bufnr)
|
||||||
-- Set autocommands conditional on server_capabilities
|
-- Set autocommands conditional on server_capabilities
|
||||||
if client.resolved_capabilities.document_highlight then
|
if client.server_capabilities.document_highlight then
|
||||||
vim.api.nvim_exec(
|
vim.api.nvim_exec(
|
||||||
[[
|
[[
|
||||||
hi LspReferenceRead cterm=bold ctermbg=red guibg=#464646
|
hi LspReferenceRead cterm=bold ctermbg=red guibg=#464646
|
||||||
@@ -109,7 +109,7 @@ end
|
|||||||
|
|
||||||
--function lsp_config.tsserver_on_attach(client, bufnr)
|
--function lsp_config.tsserver_on_attach(client, bufnr)
|
||||||
-- lsp_config.common_on_attach(client, bufnr)
|
-- lsp_config.common_on_attach(client, bufnr)
|
||||||
-- client.resolved_capabilities.document_formatting = false
|
-- client.server_capabilities.document_formatting = false
|
||||||
--end
|
--end
|
||||||
|
|
||||||
-- Use a loop to conveniently both setup defined servers
|
-- Use a loop to conveniently both setup defined servers
|
||||||
|
|||||||
Reference in New Issue
Block a user