From d60b54182c364848921783841c6a64d8eb4742c5 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 1 Jul 2022 19:11:30 +0300 Subject: [PATCH] v: are not required in vim9script --- vim/.vim/pack/stargrave/start/ctags/autoload/ctags.vim | 6 +++--- vim/.vim/pack/stargrave/start/ctags/plugin/ctags.vim | 7 ++++--- .../pack/stargrave/start/defsplit/autoload/defsplit.vim | 6 +++--- vim/.vim/plugin/lsp.vim | 8 ++++---- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/vim/.vim/pack/stargrave/start/ctags/autoload/ctags.vim b/vim/.vim/pack/stargrave/start/ctags/autoload/ctags.vim index 0119014..29e1363 100644 --- a/vim/.vim/pack/stargrave/start/ctags/autoload/ctags.vim +++ b/vim/.vim/pack/stargrave/start/ctags/autoload/ctags.vim @@ -26,12 +26,12 @@ export def Do(lang: string, onlyCmd: bool, verbose: bool) "--c++-kinds=+p", "--recurse", ] - if verbose == v:true | cmdline += ["--verbose"] | endif + if verbose == true | cmdline += ["--verbose"] | endif cmdline += ["-f", dst, src] - if onlyCmd == v:true + if onlyCmd == true echo join(cmdline, " ") return endif execute "!" .. join(cmdline, " ") - if verbose != v:true | redraw! | endif + if verbose != true | redraw! | endif enddef diff --git a/vim/.vim/pack/stargrave/start/ctags/plugin/ctags.vim b/vim/.vim/pack/stargrave/start/ctags/plugin/ctags.vim index 0f63d9e..34cde99 100644 --- a/vim/.vim/pack/stargrave/start/ctags/plugin/ctags.vim +++ b/vim/.vim/pack/stargrave/start/ctags/plugin/ctags.vim @@ -1,4 +1,5 @@ +vim9script if exists("*ctags#Do") | finish | endif -command! -nargs=1 Ctags silent call ctags#Do(, v:false, v:false) -command! -nargs=1 Ctagsv silent call ctags#Do(, v:true, v:false) -command! -nargs=1 Ctagscmd call ctags#Do(, v:true, v:true) +command! -nargs=1 Ctags silent call ctags#Do(, false, false) +command! -nargs=1 Ctagsv silent call ctags#Do(, true, false) +command! -nargs=1 Ctagscmd call ctags#Do(, true, true) diff --git a/vim/.vim/pack/stargrave/start/defsplit/autoload/defsplit.vim b/vim/.vim/pack/stargrave/start/defsplit/autoload/defsplit.vim index 74337e8..94ab756 100644 --- a/vim/.vim/pack/stargrave/start/defsplit/autoload/defsplit.vim +++ b/vim/.vim/pack/stargrave/start/defsplit/autoload/defsplit.vim @@ -71,9 +71,9 @@ export def Do(brsAllowable: list, singleLineComma: bool, ...args: list, singleLineComma: bool, ...args: listgd", - ShowHover: v:true, + ShowHover: true, Completion: "omnifunc", } -- 2.44.0