You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Today I tried to switch from lsp-installer to mason.nvim and mason-lspconfig.nvim but I'm facing problems or I'm doing something wrong in the configuration and I don't see what. For testing I prepared a fresh neovim installation with packer and minimum configuration required to run ray-x/navigator.lua, mason.nvim and mason-lspconfig.nvim.With :LspInstall I installed pyright.
As result, I want to have running pyright as my lsp-serve for python files but when I run :LspInfo on some dummy python script I'm getting information that any of lsp clients is attached to buffer.
Use [q] or [Esc] to quit the window
~~ Language client log: /root/.cache/nvim/lsp.log
~ Detected filetype: python
~~ 0 client(s) attached to this buffer:
~~ Configured servers list:
~
Additional informations
Neovim version:
root@749fbc5e5807:/# nvim --version
NVIM v0.7.2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by [email protected]
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for$VIM: "/usr/share/nvim"
Run :checkhealth for more info
root@749fbc5e5807:/#
When I run :LspInstall inside the buffer I'm getting list of available servers with information that pyright is already installed:
Please selectwhich server you want to install for filetype "python":
1: jedi_language_server
2: pylsp
3: pyright (installed)
4: sourcery
Type number and <Enter> or click with the mouse (q or empty cancels):
the reason is pylsp was install in virtual env path. It is not a binary lspconfig usually deal with.
You can setup pylsp by set navigator.setup{lsp={ pylsp ={ cmd={'mason_install_path'} } ATM
Hi,
Today I tried to switch from
lsp-installer
tomason.nvim
andmason-lspconfig.nvim
but I'm facing problems or I'm doing something wrong in the configuration and I don't see what. For testing I prepared a fresh neovim installation withpacker
and minimum configuration required to runray-x/navigator.lua
,mason.nvim
andmason-lspconfig.nvim
.With:LspInstall
I installedpyright
.As result, I want to have running
pyright
as mylsp-serve
forpython
files but when I run:LspInfo
on some dummy python script I'm getting information that any oflsp clients
is attached to buffer.Additional informations
Neovim version:
My
nvim
configuration file looks like that:When I run
:LspInstall
inside the buffer I'm getting list of available servers with information thatpyright
is already installed:Navigator.lua debug log
The text was updated successfully, but these errors were encountered: