From 9ed0950e5fd53a48430f7fdc069a71d6fdeab145 Mon Sep 17 00:00:00 2001 From: Aleksa Vuckovic Date: Sat, 8 Oct 2022 22:14:00 +0200 Subject: pylsp + plugin updates --- lua/user/lsp/handlers.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/user/lsp/handlers.lua') diff --git a/lua/user/lsp/handlers.lua b/lua/user/lsp/handlers.lua index 5f3e493..5bc3074 100644 --- a/lua/user/lsp/handlers.lua +++ b/lua/user/lsp/handlers.lua @@ -46,7 +46,7 @@ end local function lsp_highlight_document(client) -- Set autocommands conditional on server_capabilities - if client.resolved_capabilities.document_highlight then + if client.server_capabilities.document_highlight then vim.api.nvim_exec( [[ augroup lsp_document_highlight @@ -86,7 +86,7 @@ end M.on_attach = function(client, bufnr) if client.name == "tsserver" then - client.resolved_capabilities.document_formatting = false + client.server_capabilities.document_formatting = false end lsp_keymaps(bufnr) lsp_highlight_document(client) -- cgit v1.2.3