@@ -163,6 +163,34 @@ Only available in Emacs 27 and above."
163
163
:type 'list
164
164
:group 'lsp-pyright )
165
165
166
+ (defcustom lsp-pyright-basedpyright-inlay-hints-variable-types t
167
+ " Whether to show inlay hints on assignments to variables.
168
+
169
+ Basedpyright only."
170
+ :type 'boolean
171
+ :group 'lsp-pyright )
172
+
173
+ (defcustom lsp-pyright-basedpyright-inlay-hints-call-argument-names t
174
+ " Whether to show inlay hints on function arguments.
175
+
176
+ Basedpyright only."
177
+ :type 'boolean
178
+ :group 'lsp-pyright )
179
+
180
+ (defcustom lsp-pyright-basedpyright-inlay-hints-function-return-types t
181
+ " Whether to show inlay hints on function return types.
182
+
183
+ Basedpyright only."
184
+ :type 'boolean
185
+ :group 'lsp-pyright )
186
+
187
+ (defcustom lsp-pyright-basedpyright-inlay-hints-generic-types nil
188
+ " Whether to show inlay hints on inferred generic types.
189
+
190
+ Basedpyright only."
191
+ :type 'boolean
192
+ :group 'lsp-pyright )
193
+
166
194
(defun lsp-pyright--locate-venv ()
167
195
" Look for virtual environments local to the workspace."
168
196
(or lsp-pyright-venv-path
@@ -228,6 +256,10 @@ Current LSP WORKSPACE should be passed in."
228
256
(,(concat lsp-pyright-langserver-command " .disableOrganizeImports" ) lsp-pyright-disable-organize-imports t )
229
257
(,(concat lsp-pyright-langserver-command " .disableTaggedHints" ) lsp-pyright-disable-tagged-hints t )
230
258
(,(concat lsp-pyright-langserver-command " .typeCheckingMode" ) lsp-pyright-type-checking-mode)
259
+ (" basedpyright.analysis.inlayHints.variableTypes" lsp-pyright-basedpyright-inlay-hints-variable-types t )
260
+ (" basedpyright.analysis.inlayHints.callArgumentNames" lsp-pyright-basedpyright-inlay-hints-call-argument-names t )
261
+ (" basedpyright.analysis.inlayHints.functionReturnTypes" lsp-pyright-basedpyright-inlay-hints-function-return-types t )
262
+ (" basedpyright.analysis.inlayHints.genericTypes" lsp-pyright-basedpyright-inlay-hints-generic-types t )
231
263
(" python.analysis.typeCheckingMode" lsp-pyright-type-checking-mode)
232
264
(" python.analysis.autoImportCompletions" lsp-pyright-auto-import-completions t )
233
265
(" python.analysis.diagnosticMode" lsp-pyright-diagnostic-mode)
0 commit comments