summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2023-01-09 18:37:16 +0100
committerSanto Cariotti <santo@dcariotti.me>2023-01-09 18:37:16 +0100
commit13cc51a56df417e15e28b31b8e960883d61b427c (patch)
tree9238d360ff985d1ab2ff472574ac49fd1401f768
parent27716f4d5dafe8f21d32e571b057a6b36c6a9a4f (diff)
Nvim: update to 8.2
-rw-r--r--.config/nvim/lua/lsp_conf.lua2
1 files changed, 1 insertions, 1 deletions
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', '<A-f>', '<cmd>lua vim.lsp.buf.formatting_sync(nil, 2000)<cr>', opts)
vim.cmd "autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_seq_sync(nil, 2000)"
end