1
0
Fork 0
mirror of synced 2024-12-21 22:41:06 -05:00

Updated plugins, added extra configs to make Syntastic work with Go

This commit is contained in:
amix 2015-12-17 12:44:42 -03:00
parent 6b48dc598f
commit 3aabd8befd
3 changed files with 17 additions and 3 deletions

View file

@ -78,7 +78,7 @@ def get_comment_format():
def make_box(twidth, bwidth=None): def make_box(twidth, bwidth=None):
b, m, e, i = get_comment_format() b, m, e, i = (s.strip() for s in get_comment_format())
bwidth_inner = bwidth - 3 - max(len(b), len(i + e)) if bwidth else twidth + 2 bwidth_inner = bwidth - 3 - max(len(b), len(i + e)) if bwidth else twidth + 2
sline = b + m + bwidth_inner * m[0] + 2 * m[0] sline = b + m + bwidth_inner * m[0] + 2 * m[0]
nspaces = (bwidth_inner - twidth) // 2 nspaces = (bwidth_inner - twidth) // 2

View file

@ -16,8 +16,8 @@ snippet marginconvention
var ${8:height} = ${9:500} - $1.top - $1.bottom; var ${8:height} = ${9:500} - $1.top - $1.bottom;
var ${10:svg} = d3.select("${11}").append("svg") var ${10:svg} = d3.select("${11}").append("svg")
.attr("width", $6) .attr("width", $6 + $1.left + $1.right)
.attr("height", $8) .attr("height", $8 + $1.top + $1.bottom)
.append("g") .append("g")
.attr("transform", "translate(" + $1.left + "," + $1.top + ")") .attr("transform", "translate(" + $1.left + "," + $1.top + ")")
snippet nest snippet nest

View file

@ -104,6 +104,7 @@ au FileType mako vmap Si S"i${ _(<esc>2f"a) }<esc>
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:airline_theme="luna" let g:airline_theme="luna"
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Vimroom " => Vimroom
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@ -113,12 +114,25 @@ let g:goyo_margin_bottom = 2
nnoremap <silent> <leader>z :Goyo<cr> nnoremap <silent> <leader>z :Goyo<cr>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Vim-go
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:go_fmt_command = "goimports"
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Syntastic (syntax checker) " => Syntastic (syntax checker)
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Python
let g:syntastic_python_checkers=['pyflakes'] let g:syntastic_python_checkers=['pyflakes']
" Javascript
let g:syntastic_javascript_checkers = ['jshint'] let g:syntastic_javascript_checkers = ['jshint']
" Go
let g:syntastic_auto_loc_list = 1
let g:syntastic_go_checkers = ['go', 'golint', 'errcheck']
" Custom CoffeeScript SyntasticCheck " Custom CoffeeScript SyntasticCheck
func! SyntasticCheckCoffeescript() func! SyntasticCheckCoffeescript()
let l:filename = substitute(expand("%:p"), '\(\w\+\)\.coffee', '.coffee.\1.js', '') let l:filename = substitute(expand("%:p"), '\(\w\+\)\.coffee', '.coffee.\1.js', '')