Skip to content

Commit

Permalink
Remove unsupported settings in ruff server (#4546)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daisuke897 authored Sep 16, 2024
1 parent 6447c32 commit 5617883
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions clients/lsp-ruff.el
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,10 @@ Previous ruff-lsp should change this to (\"ruff-lsp\")"
:type '(repeat string)
:group 'lsp-ruff)

(defcustom lsp-ruff-ruff-path ["ruff"]
"Paths to ruff to try, in order."
:risky t
:type 'lsp-string-vector
:group 'lsp-ruff)

(defcustom lsp-ruff-ruff-args []
(defcustom lsp-ruff-ruff-args '()
"Arguments, passed to ruff."
:risky t
:type 'lsp-string-vector
:type '(repeat string)
:group 'lsp-ruff)

(defcustom lsp-ruff-log-level "error"
Expand Down Expand Up @@ -93,18 +87,15 @@ Previous ruff-lsp should change this to (\"ruff-lsp\")"
(lsp-register-client
(make-lsp-client
:new-connection (lsp-stdio-connection
(lambda () lsp-ruff-server-command))
(lambda () (append lsp-ruff-server-command lsp-ruff-ruff-args)))
:activation-fn (lsp-activate-on "python")
:server-id 'ruff
:priority -2
:add-on? t
:initialization-options
(lambda ()
(list :settings
(list :args lsp-ruff-ruff-args
:logLevel lsp-ruff-log-level
:path lsp-ruff-ruff-path
:interpreter (vector lsp-ruff-python-path)
(list :logLevel lsp-ruff-log-level
:showNotifications lsp-ruff-show-notifications
:organizeImports (lsp-json-bool lsp-ruff-advertize-organize-imports)
:fixAll (lsp-json-bool lsp-ruff-advertize-fix-all)
Expand Down

0 comments on commit 5617883

Please sign in to comment.