Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [pyright]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
2 answers
454 views

Run pyright in single file mode and some questions

I have pyright set up as an lsp in neovim and my configuration is like this: lspconfig.pyright.setup({ on_attach = on_attach, capabilities = capabilities, root_dir = function(fname) local ...
f4T1H21's user avatar
  • 23
1 vote
1 answer
58 views

Pyright LSP, leading spaces appears as " " in hover

I am using pyright LSP with the neovim (0.10.0-dev), and am seeing any leading spaces in docstrings replaced by  . For example, see the attached image: As far as I can tell it seems very ...
Tom's user avatar
  • 11
1 vote
0 answers
192 views

How to have automatic function parameter hint popup in NeoVim ( LunarVim ) with pyright LSP?

Greetings NeoVim version: NVIM v0.9.5. I have recently installed NeoVim, with LunarVim configuration on top. My LSP is Pyright. Everything about the LSP and configuration is great, but everytime I'...
KhodeNima's user avatar
  • 131
1 vote
1 answer
366 views

How to use coc-jedi to help coc-pyright jump to pytest fixture definitions?

I really enjoy coc-pyright and use it all the time for everything. But it can't jump to Pytest fixture definitions, and there are no plans to include such a feature. Pyright doesn't include any ...
LondonRob's user avatar
1 vote
1 answer
273 views

Is there an autocmd event that triggers when a command becomes available?

I'm using nvim-lsp and pyright. That latter provides a command PyrightSetPythonPath to reset the path to the python interpreter. Since I can see no other way to perform the same task, I'd like to call ...
Futarimiti's user avatar
0 votes
1 answer
156 views

Python formatter stop working in Neovim [closed]

No errors are being thrown for the code with a lot of issues. I have tried black, ruff but nothing works. I have also tried reinstalling with mason. I have disabled diagnostics for the lsp (pyright) ...
Sid's user avatar
  • 109
0 votes
0 answers
27 views

How to add specific module in ways that lspconfig can recognise it?

I have a project that is structured something like this --project_name |- bin/main.py |- some_module |- file_a.py |- file_b.py |- ... |- .vscode/launch.json import sys from some_module....
Sito's user avatar
  • 121