[Newbie] Cannot alter extra_paths from neovim lspconfig setup
See original GitHub issueUsing jedi-vim
I can do let g:jedi#added_sys_path = ['./lib', './src',]
and enjoy completion with lookup in local modules.
For the love of God I cannot make it work with neovim, 0.7.2, 0.8, 0.9 in particular.
I am using nvim-lsp-installer
to easy install the plugin, then nvim-lspconfig
in particular.
Thus extending should happen in the setup, here is what I try:
require('lspconfig')['jedi_language_server'].setup{
...
settings = { ... }
root_dir = require("lspconfig/utils").root_pattern(".git") -- ensure root directory is found for proejcts
...
}
Added references:
- extraPaths, neovim discussions
- jedi.workspace.extraPaths , coc-jedi
- python.autoComplete.extraPaths, python-language-server
- nvim-lsp
Issue Analytics
- State:
- Created a year ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
nvim-lspconfig/server_configurations.md at master - GitHub
To enable completion, install a snippet plugin and add the following override to your language client capabilities during setup. --Enable (broadcasting) snippet ...
Read more >Newbie LSP configuration problems : r/neovim - Reddit
Hi, I'm switching from Vim/CoC to Neovim/Native-LSP. For some reason the Lua LSP isn't working. After I open Neovim I receive this message...
Read more >Neovim (nvim) unable to find local Python modules
I'm still not sure how to make this happen automatically. require("lspconfig").pyright.setup { settings = { python = { analysis = { extraPaths = ......
Read more >Pyright unable to resolve imports that are in my PYTHONPATH
I'm running neovim with nvim-lspconfig plugin with pyright. ... so I've got a PYTHONPATH environment variable set up to help python find all...
Read more >Setting up LSP Config in Neovim for beautiful error diagnostics
Now that we know a bit about how LSP works, let's get to setting up LSP configuration for Neovim. · Install nvim-lspconfig ·...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
GREAT! 5 days of pain ended!
👍