Skip to content

Commit 2db2c45

Browse files
add basic .travis.yml CI support for linting (#223)
1 parent de6ae74 commit 2db2c45

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.travis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
sudo: false
2+
language: generic
3+
git:
4+
depth: 3
5+
6+
matrix:
7+
include:
8+
- os: osx
9+
- os: linux
10+
dist: trusty
11+
python: "3.6"
12+
13+
addons:
14+
apt:
15+
packages:
16+
- python3
17+
- python3-pip
18+
19+
before_install:
20+
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then export PATH="$HOME/Library/Python/3.6/bin:$PATH"; fi
21+
- pip3 install --user setuptools --upgrade
22+
- pip3 install --user vim-vint typing
23+
24+
before_script:
25+
- uname -a
26+
- which -a vim
27+
- which -a python
28+
- vim --version
29+
30+
script:
31+
- vint plugin ftplugin

plugin/lsp.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ let g:lsp_next_sign_id = get(g:, 'lsp_next_sign_id', 6999)
1919
let g:lsp_preview_keep_focus = get(g:, 'lsp_preview_keep_focus', 1)
2020

2121
if g:lsp_auto_enable
22-
au VimEnter * call lsp#enable()
22+
augroup lsp_auto_enable
23+
autocmd!
24+
autocmd VimEnter * call lsp#enable()
25+
augroup END
2326
endif
2427

2528
command! LspCodeAction call lsp#ui#vim#code_action()

0 commit comments

Comments
 (0)