X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/5a4872f466ebd76ddd532bdf2798554421c53df4..fe3919e725e156d751069662d11e38f7b4791de1:/.vim/bundle/vim-lsp/minimal.vimrc?ds=sidebyside diff --git a/.vim/bundle/vim-lsp/minimal.vimrc b/.vim/bundle/vim-lsp/minimal.vimrc new file mode 100644 index 00000000..cc9e8aee --- /dev/null +++ b/.vim/bundle/vim-lsp/minimal.vimrc @@ -0,0 +1,35 @@ +" 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(expand('~/plug.vim')) + silent !curl -fLo ~/plug.vim + \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim +endif + +source ~/plug.vim + +call plug#begin('~/.vim.plugged') +Plug 'prabirshrestha/asyncomplete.vim' +Plug 'prabirshrestha/vim-lsp' +Plug 'prabirshrestha/asyncomplete-lsp.vim' +call plug#end() + +imap (asyncomplete_force_refresh) +inoremap pumvisible() ? "\" : "\" +inoremap pumvisible() ? "\" : "\" +inoremap pumvisible() ? "\\" : "\" +autocmd! CompleteDone * if pumvisible() == 0 | pclose | endif + +if executable('pylsp') + " pip install python-lsp-server + au User lsp_setup call lsp#register_server({ + \ 'name': 'pylsp', + \ 'cmd': {server_info->['pylsp']}, + \ 'allowlist': ['python'], + \ }) +endif