Skip to content

Instantly share code, notes, and snippets.

@frdeso
Created March 5, 2019 17:24
Show Gist options
  • Save frdeso/f2ecebaab856193d1850c3bdc8bafe05 to your computer and use it in GitHub Desktop.
Save frdeso/f2ecebaab856193d1850c3bdc8bafe05 to your computer and use it in GitHub Desktop.
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