Python#
Server#
For more information about the LSP server, check ruff-lsp.
Installation#
pip install ruff-lsp
Debugger: Not available#
Available configurations#
lsp-ruff-lsp-advertize-fix-all
#
Type: boolean
Default: t
Whether to report ability to handle source.fixAll actions.
lsp-ruff-lsp-advertize-organize-imports
#
Type: boolean
Default: t
Whether to report ability to handle source.organizeImports actions.
lsp-ruff-lsp-import-strategy
#
Type: (choice (const fromEnvironment) (const useBundled))
Default: fromEnvironment
Where ruff is imported from if lsp-ruff-lsp-ruff-path is not set.
lsp-ruff-lsp-log-level
#
Type: (choice (const debug) (const error) (const info) (const off) (const warn))
Default: error
Tracing level.
lsp-ruff-lsp-python-path
#
Type: string
Default: python3
Path to the Python interpreter.
lsp-ruff-lsp-ruff-args
#
Type: lsp-string-vector
Default: []
Arguments, passed to ruff.
lsp-ruff-lsp-ruff-path
#
Type: lsp-string-vector
Default: [ruff]
Paths to ruff to try, in order.
lsp-ruff-lsp-server-command
#
Type: (repeat string)
Default: (ruff-lsp)
Command to start ruff-lsp.
lsp-ruff-lsp-show-notifications
#
Type: (choice (const off) (const onError) (const onWarning) (const always))
Default: off
When notifications are shown.