mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-09 20:13:51 -05:00
Update
This commit is contained in:
@@ -225,7 +225,7 @@ function! go#config#DebugCommands() abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! go#config#DebugLogOutput() abort
|
function! go#config#DebugLogOutput() abort
|
||||||
return get(g:, 'go_debug_log_output', 'debugger, rpc')
|
return get(g:, 'go_debug_log_output', 'debugger,rpc')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! go#config#LspLog() abort
|
function! go#config#LspLog() abort
|
||||||
@@ -259,7 +259,7 @@ function! go#config#SetTemplateAutocreate(value) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! go#config#MetalinterCommand() abort
|
function! go#config#MetalinterCommand() abort
|
||||||
return get(g:, "go_metalinter_command", "gometalinter")
|
return get(g:, "go_metalinter_command", "golangci-lint")
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! go#config#MetalinterAutosaveEnabled() abort
|
function! go#config#MetalinterAutosaveEnabled() abort
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript')
|
|||||||
function! jsx_pretty#comment#update_commentstring(original)
|
function! jsx_pretty#comment#update_commentstring(original)
|
||||||
let syn_current = s:syn_name(line('.'), col('.'))
|
let syn_current = s:syn_name(line('.'), col('.'))
|
||||||
let syn_start = s:syn_name(line('.'), 1)
|
let syn_start = s:syn_name(line('.'), 1)
|
||||||
let save_cursor = getcurpos()
|
let save_view = winsaveview()
|
||||||
|
|
||||||
if syn_start =~? '^jsx'
|
if syn_start =~? '^jsx'
|
||||||
let line = getline(".")
|
let line = getline(".")
|
||||||
@@ -23,7 +23,7 @@ function! jsx_pretty#comment#update_commentstring(original)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
" Restore the cursor position
|
" Restore the cursor position
|
||||||
call setpos('.', save_cursor)
|
call winrestview(save_view)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:syn_name(lnum, cnum)
|
function! s:syn_name(lnum, cnum)
|
||||||
|
|||||||
@@ -32,14 +32,13 @@ endif
|
|||||||
" use a different output, for those we define them directly and modify the
|
" use a different output, for those we define them directly and modify the
|
||||||
" errorformat ourselves. More information at:
|
" errorformat ourselves. More information at:
|
||||||
" http://vimdoc.sourceforge.net/htmldoc/quickfix.html#errorformat
|
" http://vimdoc.sourceforge.net/htmldoc/quickfix.html#errorformat
|
||||||
CompilerSet errorformat =%-G#\ %.%# " Ignore lines beginning with '#' ('# command-line-arguments' line sometimes appears?)
|
CompilerSet errorformat =%-G#\ %.%# " Ignore lines beginning with '#' ('# command-line-arguments' line sometimes appears?)
|
||||||
CompilerSet errorformat+=%-G%.%#panic:\ %m " Ignore lines containing 'panic: message'
|
CompilerSet errorformat+=%-G%.%#panic:\ %m " Ignore lines containing 'panic: message'
|
||||||
CompilerSet errorformat+=%Ecan\'t\ load\ package:\ %m " Start of multiline error string is 'can\'t load package'
|
CompilerSet errorformat+=%Ecan\'t\ load\ package:\ %m " Start of multiline error string is 'can\'t load package'
|
||||||
CompilerSet errorformat+=%A%f:%l:%c:\ %m " Start of multiline unspecified string is 'filename:linenumber:columnnumber:'
|
CompilerSet errorformat+=%A%\\%%(%[%^:]%\\+:\ %\\)%\\?%f:%l:%c:\ %m " Start of multiline unspecified string is 'filename:linenumber:columnnumber:'
|
||||||
CompilerSet errorformat+=%A%f:%l:\ %m " Start of multiline unspecified string is 'filename:linenumber:'
|
CompilerSet errorformat+=%A%\\%%(%[%^:]%\\+:\ %\\)%\\?%f:%l:\ %m " Start of multiline unspecified string is 'filename:linenumber:'
|
||||||
CompilerSet errorformat+=%C%*\\s%m " Continuation of multiline error message is indented
|
CompilerSet errorformat+=%C%*\\s%m " Continuation of multiline error message is indented
|
||||||
CompilerSet errorformat+=%-G%.%# " All lines not matching any of the above patterns are ignored
|
CompilerSet errorformat+=%-G%.%# " All lines not matching any of the above patterns are ignored
|
||||||
|
|
||||||
let &cpo = s:save_cpo
|
let &cpo = s:save_cpo
|
||||||
unlet s:save_cpo
|
unlet s:save_cpo
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user