diff options
| author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-22 17:16:27 +0200 | 
|---|---|---|
| committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-22 17:16:27 +0200 | 
| commit | 6f0c50457f9d197c1a1759d4302f251cce4242d8 (patch) | |
| tree | d935fca3ffab9e0a25fe062513095f968871fc77 /autoload | |
| parent | 06548fe61765d8a68a289741ce8d30f04a037e60 (diff) | |
| download | vim-polyglot-6f0c50457f9d197c1a1759d4302f251cce4242d8.tar.gz vim-polyglot-6f0c50457f9d197c1a1759d4302f251cce4242d8.zip | |
Build
Diffstat (limited to 'autoload')
| -rw-r--r-- | autoload/go/config.vim | 4 | ||||
| -rw-r--r-- | autoload/rustfmt.vim | 4 | ||||
| -rw-r--r-- | autoload/terraform.vim | 1 | 
3 files changed, 7 insertions, 2 deletions
| diff --git a/autoload/go/config.vim b/autoload/go/config.vim index 55bc1902..355f90fb 100644 --- a/autoload/go/config.vim +++ b/autoload/go/config.vim @@ -572,6 +572,10 @@ function! go#config#GoplsOptions() abort    return get(g:, 'go_gopls_options', ['-remote=auto'])  endfunction +function! go#config#FillStructMode() abort +  return get(g:, 'go_fillstruct_mode', 'fillstruct') +endfunction +  " Set the default value. A value of "1" is a shortcut for this, for  " compatibility reasons.  if exists("g:go_gorename_prefill") && g:go_gorename_prefill == 1 diff --git a/autoload/rustfmt.vim b/autoload/rustfmt.vim index 60e2029e..28cca07a 100644 --- a/autoload/rustfmt.vim +++ b/autoload/rustfmt.vim @@ -109,7 +109,7 @@ function! s:DeleteLines(start, end) abort  endfunction  function! s:RunRustfmt(command, tmpname, from_writepre) -    mkview! +    let l:view = winsaveview()      let l:stderr_tmpname = tempname()      call writefile([], l:stderr_tmpname) @@ -215,7 +215,7 @@ function! s:RunRustfmt(command, tmpname, from_writepre)          lwindow      endif -    silent! loadview +    call winrestview(l:view)  endfunction  function! rustfmt#FormatRange(line1, line2) diff --git a/autoload/terraform.vim b/autoload/terraform.vim index 05a88e30..1f987669 100644 --- a/autoload/terraform.vim +++ b/autoload/terraform.vim @@ -68,6 +68,7 @@ function! terraform#commands(ArgLead, CmdLine, CursorPos) abort      \ 'version',      \ 'workspace',      \ '0.12upgrade', +    \ '0.13upgrade',      \ 'debug',      \ 'force-unlock',      \ 'push', | 
