]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/vim-lsp-ale/test/integ/.themisrc

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:

Do not set EDITOR/VISUAL for shell
[etc/vim.git] / .vim / bundle / vim-lsp-ale / test / integ / .themisrc
1 call themis#option('exclude', 'test/README.md')
2
3 let s:dir = expand('<sfile>:p:h')
4 let s:sep = has('win32') ? '\' : '/'
5 let s:vim_lsp_dir = join([s:dir, 'deps', 'vim-lsp'], s:sep)
6 let s:ale_dir = join([s:dir, 'deps', 'ale'], s:sep)
7
8 if !isdirectory(s:vim_lsp_dir)
9     throw 'vim-lsp is not cloned at ' . s:vim_lsp_dir
10 endif
11
12 if !isdirectory(s:ale_dir)
13     throw 'ALE is not cloned at ' . s:ale_dir
14 endif
15
16 function! IntegTestRootDir() abort
17     return s:dir
18 endfunction
19
20 execute 'set rtp+=' . s:vim_lsp_dir
21 execute 'set rtp+=' . s:ale_dir
22 filetype plugin indent on
23
24 let g:lsp_log_file = 'lsp-log.txt'
25 autocmd User lsp_setup call lsp#register_server({
26         \ 'name': 'rust-analyzer',
27         \ 'cmd': { server_info -> ['rust-analyzer'] },
28         \ 'allowlist': ['rust'],
29         \ })
30
31 let g:ale_linters = { 'rust': ['vim-lsp'] }
32
33 runtime plugin/lsp_ale.vim
34 runtime plugin/lsp.vim
35 runtime plugin/ale.vim
36
37 " This is called automatically at VimEnter, but our tests load vim-lsp
38 " after the event. So manually call it here
39 call lsp#enable()
40
41 let s:helper = themis#helper('assert')
42 call themis#helper('command').with(s:helper)
43
44 " vim: set ft=vim: