Skip to content

Commit

Permalink
fix(lsp): swap server_capabilities with resolved_capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
felicandalc committed Jun 1, 2022
1 parent c9f2c0c commit 56089c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/nn/lsp/handlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ end

M.on_attach = function(client, bufnr)
if client.name == "tsserver" then
client.server_capabilities.document_formatting = false
client.resolved_capabilities.document_formatting = false
end
if client.name == "gopls" then
vim.api.nvim_command("au BufWritePost <buffer> lua vim.lsp.buf.format()")
Expand Down

0 comments on commit 56089c0

Please sign in to comment.