summaryrefslogtreecommitdiffstats
path: root/autoload
diff options
context:
space:
mode:
Diffstat (limited to 'autoload')
-rw-r--r--autoload/go/config.vim4
-rw-r--r--autoload/jsx_pretty/comment.vim4
2 files changed, 4 insertions, 4 deletions
diff --git a/autoload/go/config.vim b/autoload/go/config.vim
index ed03d910..3815bb6a 100644
--- a/autoload/go/config.vim
+++ b/autoload/go/config.vim
@@ -225,7 +225,7 @@ function! go#config#DebugCommands() abort
endfunction
function! go#config#DebugLogOutput() abort
- return get(g:, 'go_debug_log_output', 'debugger, rpc')
+ return get(g:, 'go_debug_log_output', 'debugger,rpc')
endfunction
function! go#config#LspLog() abort
@@ -259,7 +259,7 @@ function! go#config#SetTemplateAutocreate(value) abort
endfunction
function! go#config#MetalinterCommand() abort
- return get(g:, "go_metalinter_command", "gometalinter")
+ return get(g:, "go_metalinter_command", "golangci-lint")
endfunction
function! go#config#MetalinterAutosaveEnabled() abort
diff --git a/autoload/jsx_pretty/comment.vim b/autoload/jsx_pretty/comment.vim
index 932d5535..4ce4e3a7 100644
--- a/autoload/jsx_pretty/comment.vim
+++ b/autoload/jsx_pretty/comment.vim
@@ -2,7 +2,7 @@ if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript')
function! jsx_pretty#comment#update_commentstring(original)
let syn_current = s:syn_name(line('.'), col('.'))
let syn_start = s:syn_name(line('.'), 1)
- let save_cursor = getcurpos()
+ let save_view = winsaveview()
if syn_start =~? '^jsx'
let line = getline(".")
@@ -23,7 +23,7 @@ function! jsx_pretty#comment#update_commentstring(original)
endif
" Restore the cursor position
- call setpos('.', save_cursor)
+ call winrestview(save_view)
endfunction
function! s:syn_name(lnum, cnum)