Closed iduuck closed 6 months ago
Just to add this: :EslintFixAll
is also not working, so this might be an issue with the LSP itself (however, lsp.buf.format is indeed working?
from the logs you posted it looks like the response for the format request is empty
[DEBUG][2023-03-21 11:55:03] .../vim/lsp/rpc.lua:285 "rpc.send" { id = 62, jsonrpc = "2.0", method = "textDocument/formatting", params = { options = { insertSpaces = true, tabSize = 2 }, textDocument = { uri = "file:///Users/nick/dev/trpc/packages/client/src/createTRPCClient.ts" } }}
[DEBUG][2023-03-21 11:55:03] .../vim/lsp/rpc.lua:388 "rpc.receive" { id = 62, jsonrpc = "2.0", result = {}}
This is a problem with the LSP, I can't help with that, sorry.
I have also noticed this plugin has stopped working since I switched to neovim 0.9, when vim.lsp.buf.formatting* options were removed.
@NickHu It works for me. What is your configuration?
:Format
is broken for me too, and I suspect it's caused by #75, after which it seems necessary to supply format(options)
with a map that contains the correct value for buf
. I don't think the user commands have been updated to reflect this, but perhaps I'm missing something.
Formatting works if I manually call format
with buf
set.
But #75 was merged after the present report, so it can't be the cause of OP's issue.
I am currently developing several features for trpc, but the problem here is, that the formatting is not working for me properly. My dotfiles are at iduuck/dots.
Saw #70, but didn't help me, since the formatter is working on other projects properly (also not using null-ls here).
I will try to get a minimal repro done, but I am not sure, when...
:LspLog
is the following: