-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python 对于 conda 里面的包无法补全 #17
Comments
请问如果设置的话,还是在这个lspconfig.lua文件里设置吗,具体应该是怎么设置? |
我想你应该是需要在项目的根目录下面手动创建一个 {
"venv": "path",
} |
local function setup_servers()
lsp_install.setup()
local servers = lsp_install.installed_servers()
for _, lsp in ipairs(servers) do
nvim_lsp[lsp].setup {
capabilities = capabilities,
on_attach = function()
require('lsp_signature').on_attach({
bind = true,
use_lspsaga = false,
floating_window = true,
fix_pos = true,
hint_enable = true,
hi_parameter = "Search",
handler_opts = {"double"}
})
end,
settings = {
python = {
analysis = {
autoSearchPaths = true,
useLibraryCodeForTypes = false
}
}
}
}
end
end
|
require'lspconfig'.pyright.setup{} |
谢谢您的回答! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rt,好像pylsp可以但是没尝试过,请问您有相关解决方案吗
The text was updated successfully, but these errors were encountered: