nvim: Specify root markers for language client

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2019-02-11 21:18:35 +05:30
parent 27ecc9d20e
commit 2cff6bd574

View file

@ -209,6 +209,7 @@ let g:LanguageClient_serverCommands = {
\ 'rust': ['/usr/bin/rustup', 'run', 'stable', 'rls'],
\ 'python': ['/usr/bin/pyls'],
\ }
let g:LanguageClient_rootMarkers = ['*.cabal', 'stack.yaml', 'Cargo.toml']
nnoremap <Leader>lc :call LanguageClient_contextMenu()<CR>
nnoremap <Leader>lh :call LanguageClient#textDocument_hover()<CR>