No effect of vim.lsp commands (help needed with setup) #31672
Unanswered
Gullumluvl
asked this question in
Q&A
Replies: 1 comment
-
Okay, it seems to be caused by failing to properly install either the language server executable, or the config. I successfully started the Ruff LSP from Nvim by doing:
then from Nvim: weirdly, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I am sorry this is probably going to be quite stupid, but I can't find out how to get the lsp commands to work.
I come from Vim.
I compiled Neovim 0.10.1 on a Centos 7.9 machine.
Problem:
Inside a Python buffer, when I type a command like
:lua =vim.lsp.buf.references()
, nothing happens. The pyright language server is not running on my system.Steps I did to set up LSP:
Install
nvim-lspconfig
as recommended:One temporary problem I had was, from nvim,
:help lspconfig
initially said "no such help topic" or similar. I then triedwhich did not make the help available, but
did.
I installed
pyright
with micromamba (=conda).I open a Python file, and execute
:lua =require'lspconfig'.pyright.setup{}
, which does not complain.The output of
:LspInfo
is:And the output of
:checkhealth vim.lsp
is:Why does it say "No active client" ??
Indeed, pyright is not running. But I did not get any error message when calling the
lspconfig
setup command.Thanks a lot for your help!
[EDIT] Sorry, please wait, I just found that the
pyright-python-langserver --stdio
command fails when I launch it manually (missing a library). Must switch hosts to see where it should be able to run.[EDIT 2] Meanwhile I tried with the
nextflow_ls
config, for which the language server can successfully run from a terminal. Still nothing happens, andcheckhealth lsp
shows no active client.Beta Was this translation helpful? Give feedback.
All reactions