aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorLuca Matei Pintilie <luca@lucamatei.com>2024-05-21 19:20:35 +0000
committerLuca Matei Pintilie <luca@lucamatei.com>2024-05-21 19:20:35 +0000
commitf77a67e12e8b7cbeb829eb72639e293e96978277 (patch)
tree8eda45a2f278d98c978a70d8bf5b1709a3da4dc2 /.config/nvim
parente95a7d8f9bbc7e7fb60754ea78d8fec0c5e525d0 (diff)
downloaddotfiles-f77a67e12e8b7cbeb829eb72639e293e96978277.tar
dotfiles-f77a67e12e8b7cbeb829eb72639e293e96978277.tar.gz
dotfiles-f77a67e12e8b7cbeb829eb72639e293e96978277.tar.bz2
dotfiles-f77a67e12e8b7cbeb829eb72639e293e96978277.tar.lz
dotfiles-f77a67e12e8b7cbeb829eb72639e293e96978277.tar.xz
dotfiles-f77a67e12e8b7cbeb829eb72639e293e96978277.tar.zst
dotfiles-f77a67e12e8b7cbeb829eb72639e293e96978277.zip
nvim: stop using deprecated resolved_capabilities
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/lua/lsp.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/nvim/lua/lsp.lua b/.config/nvim/lua/lsp.lua
index 3b683ef..d43a931 100644
--- a/.config/nvim/lua/lsp.lua
+++ b/.config/nvim/lua/lsp.lua
@@ -117,7 +117,7 @@ local lsputils = lspconfig.util
lspconfig.tsserver.setup({
on_attach = function(client, bufnr)
- client.resolved_capabilities.document_formatting = false
+ client.server_capabilities.documentFormattingProvider = false
on_attach(client, bufnr)
end;
root_dir = lsputils.root_pattern("package.json", "tsconfig.json");