Fix deprecation notice on nightly

This commit is contained in:
zbirenbaum 2022-06-16 00:15:17 -04:00
parent 6bb209a834
commit dac05df972
1 changed files with 2 additions and 2 deletions

View File

@ -12,8 +12,8 @@ local utils = require "core.utils"
require "ui.lsp" require "ui.lsp"
M.on_attach = function(client, bufnr) M.on_attach = function(client, bufnr)
client.resolved_capabilities.document_formatting = false client.server_capabilities.documentFormattingProvider = false
client.resolved_capabilities.document_range_formatting = false client.server_capabilities.documentRangeFormattingProvider = false
local lsp_mappings = utils.load_config().mappings.lspconfig local lsp_mappings = utils.load_config().mappings.lspconfig
utils.load_mappings({ lsp_mappings }, { buffer = bufnr }) utils.load_mappings({ lsp_mappings }, { buffer = bufnr })