This repository was archived by the owner on Oct 16, 2020. It is now read-only.
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
What to expect for code completion using Neovim #494
Open
Description
Hi 👋, I've been venturing into the world of language servers recently, and so far I have been enjoying my experience with a variety of languages I work with. That said, I setup this language server to work with LanguageClient-neovim and deoplete and to the best of my knowledge everything appears to be working, ie. LanguageClient-neovim works quite well with clangd
for C, C++, and Objective-C. I have the below settings setup for javascript, javascript.jsx, and typescript in a file I use to configure my LanguageClient-neovim for neovim.
let g:LanguageClient_serverCommands = {
\ 'rust': ['rustup', 'run', 'nightly', 'rls'],
\ 'javascript': ['javascript-typescript-stdio'],
\ 'javascript.jsx': ['javascript-typescript-stdio'],
\ 'typescript': ['javascript-typescript-stdio'],
\ 'cpp': ['clangd'],
\ 'objc': ['clangd'],
\ 'c': ['clangd'],
\ 'objcpp': ['clangd']
\ }
noremap <silent> H :call LanguageClient_textDocument_hover()<CR>
noremap <silent> Z :call LanguageClient_textDocument_definition()<CR>
noremap <silent> R :call LanguageClient_textDocument_rename()<CR>
noremap <silent> S :call LanguageClient_textDocument_documentSymbol()<CR>
set omnifunc=LanguageClient#complete
set completefunc=LanguageClient#complete
Thus bringing me to my question, I am not seeing the variety of completions I see when using VS Code. Is this to be expected, or am I missing a piece of the puzzle here?