/
.vimrc.syntax
66 lines (55 loc) · 1.85 KB
/
.vimrc.syntax
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
" ###########################
" ALE Check
" ###########################
let g:ale_echo_msg_format = '%severity%: %linter%: %s'
let g:ale_sign_column_always = 1
let g:ale_sign_error = ' '
let g:ale_sign_warning = ' '
let g:ale_statusline_format = [' %d', ' %d', ' ']
let g:ale_linters = {
\ 'go': [ 'gofmt', 'go vet', 'golint' ],
\ 'javascript': [ 'eslint' ],
\ 'jsx': [ 'eslint' ],
\ 'css': [ 'stylelint' ],
\ 'html': ['htmlhint'],
\ }
" ###########################
" Syntastic Check
" ###########################
" シンタックスチェック
let g:syntastic_check_on_open=0
let g:syntastic_check_on_save=1
let g:syntastic_auto_loc_list=1
let g:syntastic_loc_list_height=6
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
" Mapping
let g:syntastic_mode_map = {
\ 'mode': 'active',
\ 'active_filetypes': ['javascript', 'go'],
\ 'passive_filetypes': []
\ }
" JS
let g:syntastic_javascript_checkers = ['jshint']
" GO
let g:go_fmt_command = "goimports" " save hook process in go-vim, neet to install goimports
" let g:syntastic_go_checkers = ['gofmt', 'golint', 'govet']
" jshint error symbol
let g:syntastic_enable_signs=1
let g:syntastic_error_symbol = "✗"
let g:syntastic_warning_symbol = "✗"
let g:syntastic_style_error_symbol = "☢"
" vim-javascript
let g:javascript_enable_domhtmlcss = 1
let b:javascript_fold = 1
let g:javascript_ignore_javaScriptdoc = 1
let g:javascript_conceal_function = "ƒ"
let g:javascript_conceal_null = "ø"
let g:javascript_conceal_this = "@"
let g:javascript_conceal_return = "⇚"
let g:javascript_conceal_undefined = "¿"
let g:javascript_conceal_NaN = "ℕ"
let g:javascript_conceal_prototype = "¶"
let g:javascript_conceal_static = "•"
let g:javascript_conceal_super = "Ω"