]> Sergey Matveev's repositories - dotfiles.git/commitdiff
v: are not required in vim9script
authorSergey Matveev <stargrave@stargrave.org>
Fri, 1 Jul 2022 16:11:30 +0000 (19:11 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 1 Jul 2022 16:11:30 +0000 (19:11 +0300)
vim/.vim/pack/stargrave/start/ctags/autoload/ctags.vim
vim/.vim/pack/stargrave/start/ctags/plugin/ctags.vim
vim/.vim/pack/stargrave/start/defsplit/autoload/defsplit.vim
vim/.vim/plugin/lsp.vim

index 0119014c42c90c327305b9120aa729f0e466a463..29e1363f7eedd00b10018e6c4dea4b37a3329bf7 100644 (file)
@@ -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
index 0f63d9e54cfe6cf2528b27c90dab13a07663f961..34cde995bdc50d8dfc800183008a947b4cf16c2f 100644 (file)
@@ -1,4 +1,5 @@
+vim9script
 if exists("*ctags#Do") | finish | endif
-command! -nargs=1 Ctags silent call ctags#Do(<f-args>, v:false, v:false)
-command! -nargs=1 Ctagsv silent call ctags#Do(<f-args>, v:true, v:false)
-command! -nargs=1 Ctagscmd call ctags#Do(<f-args>, v:true, v:true)
+command! -nargs=1 Ctags silent call ctags#Do(<f-args>, false, false)
+command! -nargs=1 Ctagsv silent call ctags#Do(<f-args>, true, false)
+command! -nargs=1 Ctagscmd call ctags#Do(<f-args>, true, true)
index 74337e8f2c0e3f54371ef7d0b0914e11ee4f6f9d..94ab75639f4290e05c960355dc186a0b88bee5db 100644 (file)
@@ -71,9 +71,9 @@ export def Do(brsAllowable: list<string>, singleLineComma: bool, ...args: list<n
     endwhile
     var [curly, round, squar, outbuf] = [0, 0, 0, ""]
     var ready = [strpart(line, 0, brfirst + 1)]
-    var trailingComma = v:true
+    var trailingComma = true
     for c in split(line[brfirst + 1 : brlast - 1], '\zs')
-        if c ==# "*" | trailingComma = v:false | endif
+        if c ==# "*" | trailingComma = false | endif
         if outbuf ==# "" && c ==# " " | continue | endif
         outbuf ..= c
         if c ==# "," && !curly && !round && !squar
@@ -87,7 +87,7 @@ export def Do(brsAllowable: list<string>, singleLineComma: bool, ...args: list<n
         elseif c ==# "}" | curly -= 1
         endif
     endfor
-    if trailingComma && !(singleLineComma == v:true && len(ready) == 1)
+    if trailingComma && !(singleLineComma == true && len(ready) == 1)
         outbuf = outbuf .. ","
     endif
     ready = add(ready, prfx .. shift .. outbuf)
index 1f5586b3c4b9558c3f1cd9d2a674efea5a74a743..7cf4c2fbcb24e38158cfdcee0291991e5e442d7e 100644 (file)
@@ -3,7 +3,7 @@ vim9script
 # go get golang.org/x/tools/gopls@latest
 # pip install 'python-language-server[all]'
 
-g:lsc_enable_autocomplete = v:false
+g:lsc_enable_autocomplete = false
 g:lsc_server_commands = {
     c: {command: "clangd --log=error"},
     cpp: {command: "clangd --log=error"},
@@ -13,16 +13,16 @@ g:lsc_server_commands = {
         workspace_config: {pyls: {
             configurationSources: ["flake8"],
             plugins: {
-                mccabe: {enabled: v:false},
+                mccabe: {enabled: false},
             },
         }},
-        enabled: v:false,
+        enabled: false,
     },
 }
 g:lsc_auto_map = {
     GoToDefinition: "gd",
     GoToDefinitionSplit: "<C-W>gd",
-    ShowHover: v:true,
+    ShowHover: true,
     Completion: "omnifunc",
 }