From db798ec1e56f77fa0921ba3383feb2a2fed9d599 Mon Sep 17 00:00:00 2001 From: mightypanders Date: Wed, 19 Oct 2022 23:41:44 +0200 Subject: [PATCH] update lsp conf for nvim 0.9.0 --- nvim/lua/new_lsp_conf.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/lua/new_lsp_conf.lua b/nvim/lua/new_lsp_conf.lua index dda0c02..6df73a6 100644 --- a/nvim/lua/new_lsp_conf.lua +++ b/nvim/lua/new_lsp_conf.lua @@ -29,14 +29,14 @@ local on_attach = function(client, bufnr) vim.keymap.set('n', 'rn', vim.lsp.buf.rename, bufopts) vim.keymap.set('n', 'ca', vim.lsp.buf.code_action, bufopts) vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts) - vim.keymap.set('n', 'f', vim.lsp.buf.formatting, bufopts) + vim.keymap.set('n', 'f', vim.lsp.buf.format, bufopts) end local lsp_flags = { -- This is the default in Nvim 0.7+ debounce_text_changes = 150, } -local capabilities = require('cmp_nvim_lsp').update_capabilities( +local capabilities = require('cmp_nvim_lsp').default_capabilities( vim.lsp.protocol.make_client_capabilities() ) require('mason-lspconfig').setup_handlers {