Created
December 2, 2019 07:50
-
-
Save Gavinok/559910ac258fb342962f9a9349d72943 to your computer and use it in GitHub Desktop.
Here is a minimal vimrc that I used to test the omni completion issue seen in vim-lsp issue #578
This file contains hidden or 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
" install: curl https://raw.githubusercontent.com/prabirshrestha/vim-lsp/master/minimal.vimrc -o /tmp/minimal.vimrc | |
" uninstall: rm /tmp/plug.vim && rm -rf /tmp/plugged | |
" run vim/neovim with minimal.vimrc | |
" vim -u minimal.vimrc | |
" :PlugInstall | |
set nocompatible hidden laststatus=2 | |
if !filereadable('/tmp/plug.vim') | |
silent !curl --insecure -fLo /tmp/plug.vim | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
endif | |
source /tmp/plug.vim | |
call plug#begin('/tmp/plugged') | |
Plug 'prabirshrestha/async.vim' | |
Plug 'prabirshrestha/vim-lsp' | |
call plug#end() | |
autocmd FileType python setlocal omnifunc=lsp#complete | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment