vim/.vim/pack/stargrave/start/ctags/autoload/ctags.vim | 6 +++--- vim/.vim/pack/stargrave/start/ctags/plugin/ctags.vim | 7 ++++--- vim/.vim/pack/stargrave/start/defsplit/autoload/defsplit.vim | 6 +++--- vim/.vim/plugin/lsp.vim | 8 ++++---- diff --git a/vim/.vim/pack/stargrave/start/ctags/autoload/ctags.vim b/vim/.vim/pack/stargrave/start/ctags/autoload/ctags.vim index 0119014c42c90c327305b9120aa729f0e466a463..29e1363f7eedd00b10018e6c4dea4b37a3329bf7 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 @@ "--python-kinds=-i", "--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 0f63d9e54cfe6cf2528b27c90dab13a07663f961..34cde995bdc50d8dfc800183008a947b4cf16c2f 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 74337e8f2c0e3f54371ef7d0b0914e11ee4f6f9d..94ab75639f4290e05c960355dc186a0b88bee5db 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 @@ skip -= 1 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 @@ elseif c ==# "{" | curly += 1 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) diff --git a/vim/.vim/plugin/lsp.vim b/vim/.vim/plugin/lsp.vim index 1f5586b3c4b9558c3f1cd9d2a674efea5a74a743..7cf4c2fbcb24e38158cfdcee0291991e5e442d7e 100644 --- a/vim/.vim/plugin/lsp.vim +++ b/vim/.vim/plugin/lsp.vim @@ -3,7 +3,7 @@ # 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 @@ command: "pyls", 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: "gd", - ShowHover: v:true, + ShowHover: true, Completion: "omnifunc", }