Created
March 5, 2019 17:24
-
-
Save frdeso/f2ecebaab856193d1850c3bdc8bafe05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin('~/.config/nvim/plugged') | |
Plug 'prabirshrestha/async.vim' | |
Plug 'prabirshrestha/vim-lsp' | |
Plug 'prabirshrestha/asyncomplete.vim' | |
Plug 'prabirshrestha/asyncomplete-lsp.vim' | |
call plug#end() | |
let g:asyncomplete_smart_completion = 1 | |
let g:asyncomplete_auto_popup = 1 | |
if executable('clangd-7') | |
au User lsp_setup call lsp#register_server({ | |
\ 'name': 'clangd-7', | |
\ 'cmd': {server_info->['clangd-7']}, | |
\ 'priority': 1, | |
\ 'whitelist': ['c', 'cpp'], | |
\ }) | |
endif | |
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>" | |
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>" | |
inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<cr>" | |
let g:lsp_log_verbose = 1 | |
let g:lsp_log_file = expand('/tmp/vim-lsp.log') | |
let g:asyncomplete_log_file = expand('/tmp/asyncomplete.log') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment