Closed itaranto closed 1 year ago
I also encounter this issue. Will try to look into it this week if I have the time.
Sorry, I don't use neovim. Anyone please get us advices.
root_dir is ~= root_markers
root_markers are efm specific and a condition to run a command when its fullfilled the root_dir is lspconfig specific used internally for the lsp setup means: root_dir = setup lsp if those markers are detected root-markers = run these commands if markers are detected
they are not related
root_dir is ~= root_markers
root_markers are efm specific and a condition to run a command when its fullfilled the root_dir is lspconfig specific used internally for the lsp setup means: root_dir = setup lsp if those markers are detected root-markers = run these commands if markers are detected
they are not related
Now I understand the difference between lspconfig's root_dir
and efm's root-markers
, thank you.
Closing the issue.
Hello,
I have some questions regarding how
efm-langserver
works withnvim-lspconfig
. I'm not a LSP expert BTW.It seems that my custom
root-markers
do not override theroot_dir
config fromnvim-lspconfig
. Is this expected? Is there anything I'm not understanding here?This is my
efm-langserver
config:With the previous config, if I open a python directory that doesn't contain a
.git
directory but asetup.py
file thenefm-langserver
is not launched by Neovim.Adding the complete list of root markers into nvim-lspconfig's
root_dir
fixes this, but then, what's the point ofroot-markers
?I know this question is Neovim-specific, but I thought
efm-langserver
reported the root markers to Neovim via the LSP protocol.