Skip to content
Discussion options

You must be logged in to vote

but then the combine-as-imports option is not respected.

This is expected because conform.nvim uses the command-line to invoke ruff executable. So, the language server is a different interface than the command-line and the settings that you pass to the language server via vim.lsp.config is only recognized by the server that's running in the background. While conform.nvim will invoke the ruff command on each run. This is why ruff as run via conform.nvim will not pickup the options specified in vim.lsp.config. Does that make sense?

There are couple of solutions:

  1. If you intend to use Ruff both via command-line and the language server, then it's best to configure it via pyproject.toml / ru…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@drewlwhitney
Comment options

@dhruvmanila
Comment options

Answer selected by drewlwhitney
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants