From dac05df972219312793e9530e9e5ff4c35f95801 Mon Sep 17 00:00:00 2001 From: zbirenbaum Date: Thu, 16 Jun 2022 00:15:17 -0400 Subject: [PATCH] Fix deprecation notice on nightly --- lua/plugins/configs/lspconfig.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/plugins/configs/lspconfig.lua b/lua/plugins/configs/lspconfig.lua index f0774215..f1494565 100644 --- a/lua/plugins/configs/lspconfig.lua +++ b/lua/plugins/configs/lspconfig.lua @@ -12,8 +12,8 @@ local utils = require "core.utils" require "ui.lsp" M.on_attach = function(client, bufnr) - client.resolved_capabilities.document_formatting = false - client.resolved_capabilities.document_range_formatting = false + client.server_capabilities.documentFormattingProvider = false + client.server_capabilities.documentRangeFormattingProvider = false local lsp_mappings = utils.load_config().mappings.lspconfig utils.load_mappings({ lsp_mappings }, { buffer = bufnr })