From 13cc51a56df417e15e28b31b8e960883d61b427c Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Mon, 9 Jan 2023 18:37:16 +0100 Subject: Nvim: update to 8.2 --- .config/nvim/lua/lsp_conf.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config/nvim') diff --git a/.config/nvim/lua/lsp_conf.lua b/.config/nvim/lua/lsp_conf.lua index 0966334..f5d2769 100644 --- a/.config/nvim/lua/lsp_conf.lua +++ b/.config/nvim/lua/lsp_conf.lua @@ -34,7 +34,7 @@ null_ls.setup({ null_ls.builtins.formatting.prettier, }, on_attach = function(client) - if client.resolved_capabilities.document_formatting then + if client.server_capabilities.document_formatting then vim.keymap.set('n', '', 'lua vim.lsp.buf.formatting_sync(nil, 2000)', opts) vim.cmd "autocmd BufWritePre lua vim.lsp.buf.formatting_seq_sync(nil, 2000)" end -- cgit v1.2.3-18-g5258