Replies: 2 comments
-
I don't think there's currently a good way to do that because code-actions can require multiple request/response roundtrips. It would probably require some |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yeah, i was afraid of something like that. Although it doesn't seem like a super special use-case.... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
how would you achieve running specific codeactions on save? F.e. adding final modifiers or removing unused imports. I figured you can just call
vim.lsp.buf.code_action({filter = finalModifiers, apply = true})
wherefinalModifiers
is a function that picks the correct code-actions. But f.e. you can't really dovim.lsp.buf.format()
afterwards, it'll break the code. I highly assume because the 2 actions are interfering with another.How would you chain running those codeactions on save?
Regards
Beta Was this translation helpful? Give feedback.
All reactions