Skip to content

Commit

Permalink
時代はVimConf(システム側の追加する変数に乗るのよくないのね)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuuote committed Mar 1, 2025
1 parent 9fda3b6 commit d48ea61
Show file tree
Hide file tree
Showing 31 changed files with 70 additions and 70 deletions.
2 changes: 1 addition & 1 deletion autoload/vimrc/inline.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
let s:root = '/tmp/inline.vim/'

function vimrc#inline#load(globpath) abort
let path = s:root .. v:progname .. ($MYVIMDIR .. a:globpath)->substitute('[$*/]', '_', 'g') .. '.vim'
let path = s:root .. v:progname .. ($VIMCONF .. a:globpath)->substitute('[$*/]', '_', 'g') .. '.vim'
if getftype(path) ==# 'file'
execute 'source' path
else
Expand Down
10 changes: 5 additions & 5 deletions conf/dpp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ export class Config extends BaseConfig {
const nvim = args.denops.meta.host === "nvim";
// X<dpp-inline_vimrcs>
const inlineVimrcs = [
await glob(args.denops, "$MYVIMDIR/conf/rc/*"),
await glob(args.denops, "$MYVIMDIR/local/rc/*"),
vim ? await glob(args.denops, "$MYVIMDIR/conf/rc/vim/*") : [],
nvim ? await glob(args.denops, "$MYVIMDIR/conf/rc/nvim/*") : [],
await glob(args.denops, "$VIMCONF/conf/rc/*"),
await glob(args.denops, "$VIMCONF/local/rc/*"),
vim ? await glob(args.denops, "$VIMCONF/conf/rc/vim/*") : [],
nvim ? await glob(args.denops, "$VIMCONF/conf/rc/nvim/*") : [],
].flat()
.filter((path) => path.match(/\.(?:vim|lua)$/));

Expand Down Expand Up @@ -79,7 +79,7 @@ export class Config extends BaseConfig {
] = await args.denops.dispatcher.getExt(
"toml",
) as [TomlExt | undefined, ExtOptions, TomlParams];
const tomls = await glob(args.denops, "$MYVIMDIR/conf/plug/**/*.toml");
const tomls = await glob(args.denops, "$VIMCONF/conf/plug/**/*.toml");
for (const tomlPath of tomls) {
const toml = await tomlExt!.actions.load.callback({
denops: args.denops,
Expand Down
2 changes: 1 addition & 1 deletion conf/dpp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ set runtimepath^=/data/vim/repos/github.com/Shougo/dpp.vim
let g:vimrc#dpp_base = $DPP_BASE ?? '/tmp/dpp'
if dpp#min#load_state(g:vimrc#dpp_base)
autocmd vimrc User Dpp:makeStatePost quit!
source $MYVIMDIR/conf/makestate.vim
source $VIMCONF/conf/makestate.vim
finish
endif
2 changes: 1 addition & 1 deletion conf/fallback.vim
Original file line number Diff line number Diff line change
@@ -1 +1 @@
source $MYVIMDIR/conf/rc/mappings.vim
source $VIMCONF/conf/rc/mappings.vim
6 changes: 3 additions & 3 deletions conf/makestate.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ set runtimepath^=/data/vim/repos/github.com/vim-denops/denops.vim
set runtimepath^=/data/vim/repos/github.com/Shougo/dpp-ext-toml
set runtimepath^=/data/vim/repos/github.com/Shougo/dpp-ext-lazy
set runtimepath^=/data/vim/repos/github.com/Shougo/dpp-protocol-git
let s:denopsrc = expand('$MYVIMDIR/local/rc/denops.vim')
let s:denopsrc = expand('$VIMCONF/local/rc/denops.vim')
if getftype(s:denopsrc) ==# 'file'
" g:denops#deno等を設定するのを想定
execute 'source' s:denopsrc
endif
call dpp#make_state(g:vimrc#dpp_base, expand('$MYVIMDIR/conf/dpp.ts'))
call dpp#make_state(g:vimrc#dpp_base, expand('$VIMCONF/conf/dpp.ts'))
" Auto exit after dpp#make_state()
let g:vimrc#dpp_make_state = v:true
source $MYVIMDIR/conf/fallback.vim
source $VIMCONF/conf/fallback.vim
2 changes: 1 addition & 1 deletion conf/plug/coc.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[[plugins]]
repo = 'neoclide/coc.nvim'
hook_add = '''
let g:coc_config_home = '$MYVIMDIR'
let g:coc_config_home = '$VIMCONF'
" L<toml-ddu_source_lsp>
let g:ddu_source_lsp_clientName = 'coc.nvim'
'''
2 changes: 1 addition & 1 deletion conf/plug/ddc.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ repo = 'https://github.com/Shougo/ddc-ui-pum'
repo = 'https://github.com/Shougo/ddc.vim'
on_event = ['CmdlineEnter', 'InsertEnter']
hook_source = '''
source $MYVIMDIR/conf/plug/ddc.vim
source $VIMCONF/conf/plug/ddc.vim
'''

[[plugins]]
Expand Down
4 changes: 2 additions & 2 deletions conf/plug/ddc.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
call ddc#custom#load_config(expand('$MYVIMDIR/conf/plug/ddc/main.ts'))
call ddc#custom#load_config(expand('$MYVIMDIR/conf/plug/ddc/manual.ts'))
call ddc#custom#load_config(expand('$VIMCONF/conf/plug/ddc/main.ts'))
call ddc#custom#load_config(expand('$VIMCONF/conf/plug/ddc/manual.ts'))
call ddc#enable()
autocmd vimrc CmdlineEnter : call ddc#enable_cmdline_completion()
autocmd vimrc User DenopsPluginPost:ddc call ddc#enable_cmdline_completion()
Expand Down
2 changes: 1 addition & 1 deletion conf/plug/ddu.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ repo = 'https://github.com/Shougo/ddu-ui-filer'
repo = 'https://github.com/Shougo/ddu.vim'
# L<ddu-global>
hook_add = '''
autocmd vimrc User DenopsReady call ddu#custom#load_config(expand('$MYVIMDIR/conf/plug/ddu/main.ts'))
autocmd vimrc User DenopsReady call ddu#custom#load_config(expand('$VIMCONF/conf/plug/ddu/main.ts'))
" ddu.vim自体のロードがDenopsReadyで行われるため再呼び出ししておく
autocmd vimrc User DenopsReady ++once call timer_start(0, {->execute('doautocmd <nomodeline> User DenopsReady', '')})
'''
Expand Down
2 changes: 1 addition & 1 deletion conf/plug/ddu/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ const definition: Record<string, Collector> = {
}),
filer: async (denops) => {
await denops.dispatcher.loadConfig(
await denops.call("expand", "$MYVIMDIR/conf/plug/ddu/filer.ts"),
await denops.call("expand", "$VIMCONF/conf/plug/ddu/filer.ts"),
);
return {
name: "filer",
Expand Down
2 changes: 1 addition & 1 deletion conf/plug/denippet.vim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
let s:loaded_ft = {}
let s:dir = expand('$MYVIMDIR/snippets/')
let s:dir = expand('$VIMCONF/snippets/')

function s:load()
let ft = &filetype
Expand Down
2 changes: 1 addition & 1 deletion conf/plug/lspoints.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ hook_add = '''
nnoremap <Space>ll <Cmd>LspointsStart<CR>
'''
hook_source = '''
source $MYVIMDIR/conf/plug/lspoints.vim
source $VIMCONF/conf/plug/lspoints.vim
'''

8 changes: 4 additions & 4 deletions conf/plug/main.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[[plugins]]
repo = '$MYVIMDIR/bundle/gin-preview.vim'
repo = '$VIMCONF/bundle/gin-preview.vim'
depends = 'vim-gin'
on_cmd = 'GinPreview'

[[plugins]]
repo = '$MYVIMDIR/bundle/vim-operandi'
repo = '$VIMCONF/bundle/vim-operandi'
on_func = 'operandi#'
hook_add = '''
nnoremap ti <Cmd>call operandi#open('myterm')<CR>
Expand Down Expand Up @@ -230,7 +230,7 @@ repo = 'https://github.com/uga-rosa/denippet.vim'
lazy = true
denops_wait = false
hook_source = '''
source $MYVIMDIR/conf/plug/denippet.vim
source $VIMCONF/conf/plug/denippet.vim
'''

[[plugins]]
Expand Down Expand Up @@ -272,7 +272,7 @@ noremap! ;<Space> <Cmd>call dpp#source(['skkeleton'])<CR><Plug>(skkeleton-enable
nnoremap ;<Space> <Cmd>call dpp#source(['skkeleton'])<CR>i<Plug>(skkeleton-enable)
'''
hook_source = '''
source $MYVIMDIR/conf/plug/skkeleton.vim
source $VIMCONF/conf/plug/skkeleton.vim
'''

[[plugins]]
Expand Down
4 changes: 2 additions & 2 deletions conf/plug/nvim/main.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
repo = 'https://github.com/hrsh7th/nvim-insx'
on_event = 'InsertEnter'
hook_source = '''
source $MYVIMDIR/conf/plug/nvim/insx.lua
source $VIMCONF/conf/plug/nvim/insx.lua
'''

[[plugins]]
Expand All @@ -21,7 +21,7 @@ vim.keymap.set('n', '<C-a>', '<Plug>(dial-increment)')
vim.keymap.set('n', '<C-x>', '<Plug>(dial-decrement)')
'''
hook_source = '''
source $MYVIMDIR/conf/plug/nvim/dial.lua
source $VIMCONF/conf/plug/nvim/dial.lua
'''

[[plugins]]
Expand Down
2 changes: 1 addition & 1 deletion conf/plug/nvim/nvim_lsp.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ hook_add = '''
nnoremap <Space>ln <Cmd>LspStart<CR>
'''
hook_source = '''
source $MYVIMDIR/conf/plug/nvim/lspconfig.lua
source $VIMCONF/conf/plug/nvim/lspconfig.lua
'''
4 changes: 2 additions & 2 deletions conf/plug/skkeleton.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
" /data/newvim/old/conf/plug/skkeleton.lua

function s:initialize() abort
let local = expand('$MYVIMDIR/local/SKK-JISYO.local')
let local = expand('$VIMCONF/local/SKK-JISYO.local')
let s:dicts = getftype(local) ==# 'file' ? [[local, 'utf-8']] : []
let s:dicts += [
\ [printf('%s/SKK-JISYO.k', dpp#get('mydicts').path), 'utf-8'],
Expand Down Expand Up @@ -96,7 +96,7 @@ function! s:tsuki() abort
lua require('vimrc.plug.skkeleton.tsuki2-263mod')()
tabedit
setlocal buftype=nofile bufhidden=hide noswapfile
call setline(1, readfile(expand('$MYVIMDIR/lua/vimrc/plug/skkeleton/tsukimod.txt')))
call setline(1, readfile(expand('$VIMCONF/lua/vimrc/plug/skkeleton/tsukimod.txt')))
vsplit
endfunction
command! SKKTsuki call s:tsuki()
4 changes: 2 additions & 2 deletions conf/rc/colors.vim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
nnoremap cs <Cmd>source $MYVIMDIR/conf/rc/colors/select.vim<CR>
nnoremap cs <Cmd>source $VIMCONF/conf/rc/colors/select.vim<CR>
set termguicolors

function s:persistent_colorscheme() abort
Expand All @@ -10,7 +10,7 @@ function s:persistent_colorscheme() abort
catch
let g:persistent_colorscheme_error = [v:exception, v:throwpoint]
try
source $MYVIMDIR/conf/rc/colors/def/catppuccin-mocha_transparent.vim
source $VIMCONF/conf/rc/colors/def/catppuccin-mocha_transparent.vim
catch
endtry
endtry
Expand Down
4 changes: 2 additions & 2 deletions conf/rc/colors/def/aomi-grayscale_dark_transparent.vim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source $MYVIMDIR/conf/rc/colors/def/common/transparent.vim
source $VIMCONF/conf/rc/colors/def/common/transparent.vim

function s:on_colorscheme() abort
hi Constant guibg=NONE
Expand All @@ -9,5 +9,5 @@ function s:on_colorscheme() abort
endfunction
autocmd persistent_colorscheme ColorScheme aomi-grayscale call s:on_colorscheme()

source $MYVIMDIR/conf/rc/colors/def/aomi-grayscale_dark.vim
source $VIMCONF/conf/rc/colors/def/aomi-grayscale_dark.vim

2 changes: 1 addition & 1 deletion conf/rc/colors/def/catppuccin-latte_bluenote.vim
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ endfunction

autocmd persistent_colorscheme ColorScheme catppuccin-latte call s:on_colors()

source $MYVIMDIR/conf/rc/colors/def/catppuccin-latte.vim
source $VIMCONF/conf/rc/colors/def/catppuccin-latte.vim
4 changes: 2 additions & 2 deletions conf/rc/colors/def/catppuccin-mocha_transparent.vim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source $MYVIMDIR/conf/rc/colors/def/common/transparent.vim
source $VIMCONF/conf/rc/colors/def/common/transparent.vim
function s:autocmd() abort
hi Comment guifg=white gui=undercurl
endfunction
autocmd persistent_colorscheme ColorScheme catppuccin-mocha call s:autocmd()
source $MYVIMDIR/conf/rc/colors/def/catppuccin-mocha.vim
source $VIMCONF/conf/rc/colors/def/catppuccin-mocha.vim
4 changes: 2 additions & 2 deletions conf/rc/colors/def/edge_dark_transparent.vim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source $MYVIMDIR/conf/rc/colors/def/common/transparent.vim
source $VIMCONF/conf/rc/colors/def/common/transparent.vim

function s:setup() abort
let palette = edge#get_palette('default', 0, {})
Expand All @@ -8,4 +8,4 @@ function s:setup() abort
endfunction
autocmd persistent_colorscheme ColorScheme edge call s:setup()

source $MYVIMDIR/conf/rc/colors/def/edge_dark.vim
source $VIMCONF/conf/rc/colors/def/edge_dark.vim
2 changes: 1 addition & 1 deletion conf/rc/colors/def/edge_light.vim
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function s:on_color_scheme() abort
hi diffOldFile guifg=#ff6060 guibg=#ffe8e8

" こっちで勝手に追加したやつ
" see $MYVIMDIR/after/syntax/diff.vim
" see $VIMCONF/after/syntax/diff.vim
hi diffIndicator guibg=#e0e0ff

if has('nvim')
Expand Down
2 changes: 1 addition & 1 deletion conf/rc/mappings.vim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
" 1 common
nnoremap ' :
nnoremap <Space>. <Cmd>cd $MYVIMDIR<CR><Cmd>echo 'change directory to ' $MYVIMDIR<CR>
nnoremap <Space>. <Cmd>cd $VIMCONF<CR><Cmd>echo 'change directory to ' $VIMCONF<CR>
nnoremap <Space>d <Cmd>DduSelectorCall filer<CR>
" nnoremap <Space>d <Cmd>Fern %:h -reveal=%<CR>
nnoremap Q <Cmd>confirm qa<CR>
Expand Down
8 changes: 4 additions & 4 deletions conf/rc/mode.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
" 複数イベントを定義すると個別にonce適用されるので全部ModeChanged使う
autocmd vimrc ModeChanged *:[ic]* ++once call vimrc#inline#load('$MYVIMDIR/conf/rc/mode/ic/**/*.vim')
autocmd vimrc ModeChanged *:*[ovV\x16]* ++once call vimrc#inline#load('$MYVIMDIR/conf/rc/mode/ov/**/*.vim')
autocmd vimrc ModeChanged *:[ic]* ++once call vimrc#inline#load('$VIMCONF/conf/rc/mode/ic/**/*.vim')
autocmd vimrc ModeChanged *:*[ovV\x16]* ++once call vimrc#inline#load('$VIMCONF/conf/rc/mode/ov/**/*.vim')
if has('nvim')
autocmd vimrc TermOpen * ++once call vimrc#inline#load('$MYVIMDIR/conf/rc/mode/t/**/*.vim')
autocmd vimrc TermOpen * ++once call vimrc#inline#load('$VIMCONF/conf/rc/mode/t/**/*.vim')
else
autocmd vimrc TerminalOpen * ++once call vimrc#inline#load('$MYVIMDIR/conf/rc/mode/t/**/*.vim')
autocmd vimrc TerminalOpen * ++once call vimrc#inline#load('$VIMCONF/conf/rc/mode/t/**/*.vim')
endif
2 changes: 1 addition & 1 deletion conf/rc/on_autocmd.vim
Original file line number Diff line number Diff line change
@@ -1 +1 @@
autocmd vimrc CmdUndefined * ++once source $MYVIMDIR/conf/rc/on_autocmd/cmd_undefined.vim
autocmd vimrc CmdUndefined * ++once source $VIMCONF/conf/rc/on_autocmd/cmd_undefined.vim
4 changes: 2 additions & 2 deletions init
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

shopt -s globstar

MYVIMDIR=$(dirname $(realpath $0))
VIMCONF=$(dirname $(realpath $0))

# install dpp.vim

Expand All @@ -29,7 +29,7 @@ ln -s $(realpath $(dirname $0))/denops/@deps /data/vim/deps
# update deno deps
fget https://github.com/denoland/deno_std /data/vim/repos/github.com/denoland/deno_std
cd /data/vim/repos/github.com/denoland/deno_std
$MYVIMDIR/script/build/build/deno_std.ts
$VIMCONF/script/build/build/deno_std.ts
cd -
cd /data/vim/repos/github.com/vim-denops/deno-denops-std
deno run -A /data/vim/repos/github.com/Omochice/importmap-expand/cli.ts **/*.ts --option deno.jsonc
Expand Down
12 changes: 6 additions & 6 deletions script/build/build.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
["coc.nvim"]
script = '$MYVIMDIR/script/build/build/coc.sh'
script = '$VIMCONF/script/build/build/coc.sh'

[deno_std]
script = '$MYVIMDIR/script/build/build/deno_std.ts'
script = '$VIMCONF/script/build/build/deno_std.ts'

["deno-denops-lsputil"]
script = '$MYVIMDIR/script/build/build/importmap-expand.sh'
script = '$VIMCONF/script/build/build/importmap-expand.sh'

["deno-denops-std"]
script = '$MYVIMDIR/script/build/build/importmap-expand.sh'
script = '$VIMCONF/script/build/build/importmap-expand.sh'

["telescope-fzf-native.nvim"]
script = '$MYVIMDIR/script/build/build/telescope-fzf-native.sh'
script = '$VIMCONF/script/build/build/telescope-fzf-native.sh'

[tree-sitter-unifieddiff]
script = '$MYVIMDIR/script/build/build/treesitter/unifieddiff.sh'
script = '$VIMCONF/script/build/build/treesitter/unifieddiff.sh'

8 changes: 4 additions & 4 deletions script/build/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import * as stdpath from "jsr:@std/path";
import * as TOML from "jsr:@std/toml";

// ビルドログ眺めてニヤニヤするやつ Version.2
// call vimrc#denops_loader#load(expand('$MYVIMDIR/script/build/build.ts'), v:true)
// call vimrc#denops_loader#load(expand('$VIMCONF/script/build/build.ts'), v:true)

const vimdir = String(Deno.env.get("MYVIMDIR"));
const vimdir = String(Deno.env.get("VIMCONF"));

const isDefinitions = is.RecordOf(is.ObjectOf({
script: is.String,
Expand Down Expand Up @@ -100,7 +100,7 @@ async function executermNvim(
async: true,
});
const cmd =
`$MYVIMDIR/script/build/build.sh ${plugin.path} ${def.script}`;
`$VIMCONF/script/build/build.sh ${plugin.path} ${def.script}`;
denops.cmd("tabnew").then(() =>
denops.eval(`termopen('${cmd}', #{on_exit: { _, code -> ${notify}}})`)
);
Expand Down Expand Up @@ -157,7 +157,7 @@ async function executermVim(
async: true,
});
const cmd = [
`${Deno.env.get("MYVIMDIR")}/script/build/build.sh`,
`${Deno.env.get("VIMCONF")}/script/build/build.sh`,
plugin.path,
await denops.call("expand", def.script),
];
Expand Down
6 changes: 3 additions & 3 deletions script/gitupdate/denops_snapshot.vim
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
call vimrc#denops_loader#load('$MYVIMDIR/script/gitupdate/dpp_dump.ts'->expand(), v:true)
let s:shot = vimrc#denops_loader#load('$MYVIMDIR/script/gitupdate/snap/dps_shot.ts'->expand(), v:true)
call denops#request(s:shot, 'run', [['$MYVIMDIR/script/gitupdate/tasks.json'->expand()], '/data/vim/snapshot'])
call vimrc#denops_loader#load('$VIMCONF/script/gitupdate/dpp_dump.ts'->expand(), v:true)
let s:shot = vimrc#denops_loader#load('$VIMCONF/script/gitupdate/snap/dps_shot.ts'->expand(), v:true)
call denops#request(s:shot, 'run', [['$VIMCONF/script/gitupdate/tasks.json'->expand()], '/data/vim/snapshot'])
16 changes: 8 additions & 8 deletions script/gitupdate/denops_view.vim
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
" tabedit $MYVIMDIR/script/gitupdate/denops_view.vim
" tabedit $VIMCONF/script/gitupdate/denops_view.vim

let s:do_diff = 0

if s:do_diff && !glob('/data/vim/diff/**/*.diff', 1, 1)->empty()
throw 'diff残ってんぞ'
endif

call vimrc#denops_loader#load('$MYVIMDIR/script/gitupdate/dpp_dump.ts'->expand(), v:true)
call vimrc#denops_loader#load('$VIMCONF/script/gitupdate/dpp_dump.ts'->expand(), v:true)

let s:runner = vimrc#denops_loader#load('$MYVIMDIR/script/gitupdate/denops_view.ts'->expand())
let s:shot = vimrc#denops_loader#load('$MYVIMDIR/script/gitupdate/snap/dps_shot.ts'->expand())
let s:diff = vimrc#denops_loader#load('$MYVIMDIR/script/gitupdate/snap/dps_diff.ts'->expand())
let s:build = vimrc#denops_loader#load('$MYVIMDIR/script/build/build.ts'->expand())
let s:runner = vimrc#denops_loader#load('$VIMCONF/script/gitupdate/denops_view.ts'->expand())
let s:shot = vimrc#denops_loader#load('$VIMCONF/script/gitupdate/snap/dps_shot.ts'->expand())
let s:diff = vimrc#denops_loader#load('$VIMCONF/script/gitupdate/snap/dps_diff.ts'->expand())
let s:build = vimrc#denops_loader#load('$VIMCONF/script/build/build.ts'->expand())

let s:tasks = []
let a_json = '$MYVIMDIR/script/gitupdate/a.json'->expand()
let a_json = '$VIMCONF/script/gitupdate/a.json'->expand()
if getftype(a_json) == 'file'
call add(s:tasks, a_json)
endif
call add(s:tasks, '$MYVIMDIR/script/gitupdate/tasks.json'->expand())
call add(s:tasks, '$VIMCONF/script/gitupdate/tasks.json'->expand())

function s:diff_post() abort
if s:do_diff
Expand Down
Loading

0 comments on commit d48ea61

Please sign in to comment.