You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to apply one particular LSP action on save. Here is the code:
The problem is that
vim.lsp.buf.code_action(params)
returns and the buffer is not written unless I save twice. Effectively I must do:w
,:w
.The autocommand also prints "No code actions available" if imports are already sorted, but this is a secondary concern.
Beta Was this translation helpful? Give feedback.
All reactions