]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/vim-lsp/minimal.vimrc

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Merge commit '294584081929424aec883f90c7d6515b3743358d' as '.vim/bundle/vim-lsp-ale'
[etc/vim.git] / .vim / bundle / vim-lsp / minimal.vimrc
1 " install: curl https://raw.githubusercontent.com/prabirshrestha/vim-lsp/master/minimal.vimrc -o /tmp/minimal.vimrc
2 " uninstall: rm /tmp/plug.vim && rm -rf /tmp/plugged
3 " run vim/neovim with minimal.vimrc
4 " vim -u minimal.vimrc
5 " :PlugInstall
6
7 set nocompatible hidden laststatus=2
8
9 if !filereadable(expand('~/plug.vim'))
10   silent !curl -fLo ~/plug.vim
11     \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
12 endif
13
14 source ~/plug.vim
15
16 call plug#begin('~/.vim.plugged')
17 Plug 'prabirshrestha/asyncomplete.vim'
18 Plug 'prabirshrestha/vim-lsp'
19 Plug 'prabirshrestha/asyncomplete-lsp.vim'
20 call plug#end()
21
22 imap <c-space> <Plug>(asyncomplete_force_refresh)
23 inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
24 inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
25 inoremap <expr> <cr> pumvisible() ? "\<C-y>\<cr>" : "\<cr>"
26 autocmd! CompleteDone * if pumvisible() == 0 | pclose | endif
27
28 if executable('pylsp')
29     " pip install python-lsp-server
30     au User lsp_setup call lsp#register_server({
31         \ 'name': 'pylsp',
32         \ 'cmd': {server_info->['pylsp']},
33         \ 'allowlist': ['python'],
34         \ })
35 endif