File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -38,16 +38,10 @@ Previous ruff-lsp should change this to (\"ruff-lsp\")"
38
38
:type '(repeat string)
39
39
:group 'lsp-ruff )
40
40
41
- (defcustom lsp-ruff-ruff-path [" ruff" ]
42
- " Paths to ruff to try, in order."
43
- :risky t
44
- :type 'lsp-string-vector
45
- :group 'lsp-ruff )
46
-
47
- (defcustom lsp-ruff-ruff-args []
41
+ (defcustom lsp-ruff-ruff-args '()
48
42
" Arguments, passed to ruff."
49
43
:risky t
50
- :type 'lsp- string-vector
44
+ :type '( repeat string)
51
45
:group 'lsp-ruff )
52
46
53
47
(defcustom lsp-ruff-log-level " error"
@@ -93,18 +87,15 @@ Previous ruff-lsp should change this to (\"ruff-lsp\")"
93
87
(lsp-register-client
94
88
(make-lsp-client
95
89
:new-connection (lsp-stdio-connection
96
- (lambda () lsp-ruff-server-command))
90
+ (lambda () ( append lsp-ruff-server-command lsp-ruff-ruff-args) ))
97
91
:activation-fn (lsp-activate-on " python" )
98
92
:server-id 'ruff
99
93
:priority -2
100
94
:add-on? t
101
95
:initialization-options
102
96
(lambda ()
103
97
(list :settings
104
- (list :args lsp-ruff-ruff-args
105
- :logLevel lsp-ruff-log-level
106
- :path lsp-ruff-ruff-path
107
- :interpreter (vector lsp-ruff-python-path)
98
+ (list :logLevel lsp-ruff-log-level
108
99
:showNotifications lsp-ruff-show-notifications
109
100
:organizeImports (lsp-json-bool lsp-ruff-advertize-organize-imports)
110
101
:fixAll (lsp-json-bool lsp-ruff-advertize-fix-all)
You can’t perform that action at this time.
0 commit comments