lighttiger2505 / deoplete-vim-lsp

deoplete source for vim-lsp
MIT License
80 stars 8 forks source link

support for nvim-lspconfig? #26

Closed dm9pZCAq closed 2 years ago

dm9pZCAq commented 3 years ago

it would be nice to also support nvim-lspconfig

Shougo commented 3 years ago

I don't understand it for me. What is the problem? Please describe it more clearly.

dm9pZCAq commented 2 years ago

nvim-lspconfig uses neovim builtin lsp functions through lua interface vim.lsp.*

vim-lsp is external plugin in vimscript

i think this function should be changed to use v:lua.vim.lsp.* instead of lsp#* functions (if configured?)

https://github.com/lighttiger2505/deoplete-vim-lsp/blob/af5432f1e063fd4c3a5879aa8c2afe82c17dc1c9/rplugin/python3/deoplete/sources/vim_lsp.py#L34-L57

here is example on nvim-lspconfig wiki of how to use autocompletions with another plugin

Shougo commented 2 years ago

Ah, I get it. It is not supported in vim-lsp side. No magic.

Shougo commented 2 years ago

deoplete-vim-lsp is just vim-lsp helper plugin. It cannot change vim-lsp core. Why it is requested in deoplete-vim-lsp side?

Shougo commented 2 years ago

If you want to use nvim-lsp configuration, you should use deoplete-lsp instead.

https://github.com/deoplete-plugins/deoplete-lsp

dm9pZCAq commented 2 years ago

thank you for response!

i just searched at deoplete.nvim/wiki and found this (deoplete-vim-lsp) plugin

maybe deoplete-lsp should also be added to wiki?

Shougo commented 2 years ago

You can add it.