Skip to content

Commit

Permalink
vimrc: move autocompletion to language server protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
yml committed Nov 15, 2017
1 parent 42169a9 commit 7c46bbf
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions _vimrc
Expand Up @@ -45,23 +45,23 @@ Plug 'tomasiser/vim-code-dark'
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
Plug 'vimwiki/vimwiki'
Plug 'davidhalter/jedi-vim'
" Plug 'davidhalter/jedi-vim'
Plug 'prabirshrestha/asyncomplete.vim'
"*****************************************************************************
" Experimental LSP completion
"*****************************************************************************"
" Plug 'prabirshrestha/async.vim'
" Plug 'prabirshrestha/vim-lsp'
" Plug 'prabirshrestha/asyncomplete-lsp.vim'
" let g:lsp_async_completion = 1
" if executable('pyls')
" " pip install python-language-server
" au User lsp_setup call lsp#register_server({
" \ 'name': 'pyls',
" \ 'cmd': {server_info->['pyls']},
" \ 'whitelist': ['python'],
" \ })
" endif
Plug 'prabirshrestha/async.vim'
Plug 'prabirshrestha/vim-lsp'
Plug 'prabirshrestha/asyncomplete-lsp.vim'
let g:lsp_async_completion = 1
if executable('pyls')
" pip install python-language-server
au User lsp_setup call lsp#register_server({
\ 'name': 'pyls',
\ 'cmd': {server_info->['pyls']},
\ 'whitelist': ['python'],
\ })
endif
"*****************************************************************************"

" Go Lang Bundle
Expand Down Expand Up @@ -136,7 +136,7 @@ set shiftwidth=4
set expandtab

" Map leader to ,
let mapleader=','
let mapleader='s'
let maplocalleader=';'

" Enable hidden buffers
Expand Down

0 comments on commit 7c46bbf

Please sign in to comment.