-
Notifications
You must be signed in to change notification settings - Fork 267
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Did you check existing requests?
- I have searched the existing issues
Describe the feature
Currently, conform.nvim provides a highly convenient format_on_save option.
I propose adding a configuration option to conform.nvim that allows users to specify a list of LSP Code Action Kinds to be executed immediately prior to or during the format_on_save process. This feature would align with a common functionality found in popular editors, such as VS Code's "Code Actions on Save".
require("conform").setup({
format_on_save = {
-- These options will be passed to conform.format()
timeout_ms = 500,
lsp_format = "fallback",
code_actions = { "source.organizeImports", "source.fixAll" }, -- ← new!
},
})Provide background
No response
What is the significance of this feature?
nice to have
Additional details
No response
eokoshi, ezequiel, FLchs and coeuvre
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request