[[plugins]] repo = '$VIMDIR/bundle/gin-preview.vim' depends = 'gin.vim' on_cmd = 'GinPreview' [[plugins]] repo = '$VIMDIR/bundle/vim-operandi' on_func = 'operandi#' hook_add = ''' nnoremap call operandi#open('mycommand') ''' [[plugins]] repo = 'https://github.com/kuuote/mydicts' if = false [[plugins]] repo = 'https://github.com/lambdalisue/gin.vim' on_cmd = [ 'Gin', ] hook_source = ''' autocmd FileType gin-status nnoremap c Gin commit autocmd FileType gin-status nnoremap h (gin-action-stage) autocmd FileType gin-status nnoremap l (gin-action-unstage) ''' [[plugins]] repo = 'https://github.com/lambdalisue/gina.vim' on_cmd = 'Gina' [[plugins]] repo = 'https://github.com/lambdalisue/kensaku.vim' # X lazy = 1 hook_source = ''' let g:kensaku_dictionary_cache = '/data/vim/cache/kensaku_dict' ''' [[plugins]] repo = 'https://github.com/lambdalisue/mr.vim' on_event = ['BufReadPre', 'BufWritePre'] hook_source = ''' let g:mr#mru#filename = '/data/mr/mru' let g:mr#mrw#filename = '/data/mr/mrw' let g:mr#mrr#filename = '/data/mr/mrr' ''' [[plugins]] repo = 'https://github.com/lambdalisue/suda.vim' on_cmd = ['SudaRead', 'SudaWrite'] [[plugins]] repo = 'https://github.com/machakann/vim-sandwich' on_map = {n = 's'} lazy = true hook_add = ''' autocmd ModeChanged *:*[ovV\x16]* ++once ++nested call dpp#source('vim-sandwich') ''' hook_source = ''' " 改めてs殺しておく nnoremap s " https://github.com/yuki-yano/dotfiles/blob/f1b6ac0c2a178177cc546bab19a175a498192e1e/.vim/lua/plugins/coding.lua#L485-L487 " saa( などで空白を含めないようにするやつ call operator#sandwich#set('add', 'char', 'skip_space', 1) autocmd ModeChanged [vV\x16]*:* call operator#sandwich#set('add', 'char', 'skip_space', 1) autocmd ModeChanged *:[vV\x16]* call operator#sandwich#set('add', 'char', 'skip_space', 0) ''' # lua_post_source = ''' # local vimx = require('artemis') # -- https://github.com/yuki-yano/dotfiles/blob/f1b6ac0c2a178177cc546bab19a175a498192e1e/.vim/lua/plugins/coding.lua#L451-L458 # -- console.log() などをまとめて指定できるやつ # vimx.g['sandwich#magicchar#f#patterns'] = { # { # header = [[\<\%(\h\k*\.\)*\h\k*]], # bra = '(', # ket = ')', # footer = '', # }, # } # ''' [[plugins]] repo = 'https://github.com/rbtnn/vim-layout' on_cmd = ['LayoutLoad', 'LayoutSave'] on_func = ['layout#'] [[plugins]] repo = 'https://github.com/skk-dev/dict' if = false [[plugins]] repo = 'https://github.com/tani/vim-artemis' [[plugins]] repo = 'https://github.com/thinca/vim-localrc' [[plugins]] repo = 'https://github.com/thinca/vim-partedit' on_cmd = 'Partedit' [[plugins]] repo = 'https://github.com/thinca/vim-qfreplace' on_cmd = 'Qfreplace' [[plugins]] repo = 'https://github.com/tyru/capture.vim' on_cmd = 'Capture' [[plugins]] repo = 'https://github.com/uga-rosa/denippet.vim' lazy = true denops_wait = false hook_source = ''' source $VIMDIR/conf/plug/denippet.vim ''' [[plugins]] repo = 'https://github.com/vim-denops/denops.vim' [[plugins]] repo = 'https://github.com/vim-jp/vimdoc-ja' hook_add = ''' set helplang=ja ''' [[plugins]] # sort_repo = 'skkeleton' # https://github.com/NI57721/dotfiles/blob/79d2decf4b1e2bf5522c3af5f0ffdefd87b7ff50/.config/vim/rc/dein.toml#L20-L24 # repo = 'kei-s16/skkeleton-azik-kanatable' repo = 'https://github.com/NI57721/skkeleton-azik-kanatable' rev = 'feature/delete-some-mappings' on_source = 'skkeleton' [[plugins]] # sort_repo = 'skkeleton' repo = 'https://github.com/vim-skk/skkeleton' lazy = true denops_wait = false hook_add = ''' noremap! ; call dpp#source('skkeleton')(skkeleton-enable) " ref: atusy: normal modeの ``をskkeleton-enableにあてちゃうのアリな気がしてきた。特にmarkdownで日本語書きまくってる時とか。" nnoremap ; call dpp#source('skkeleton')i(skkeleton-enable) ''' hook_source = ''' autocmd User skkeleton-initialize-pre ++nested ++once source $VIMDIR/conf/plug/skkeleton.vim ''' # /data/newvim/old/conf/plug/skkeleton.lua #hook_source = ''' #autocmd User DenopsPluginPost:skkeleton call skkeleton#initialize() #autocmd User skkeleton-enable-pre call s:skkeleton_pre() #function! s:skkeleton_pre() abort # if dein#is_sourced('ddc.vim') # let b:skkeleton_ddc_backup = ddc#custom#get_buffer() # let sources = get(b:, 'skkeleton_ddc_sources', ['skkeleton']) # call ddc#custom#patch_buffer('sources', sources) # call ddc#custom#patch_buffer('specialBufferCompletion', v:true) # endif # if dein#is_sourced('nvim-cmp') # lua require('vimrc.plug.cmp').change_sources('skkeleton') # endif #endfunction #autocmd User skkeleton-disable-pre call s:skkeleton_post() #function! s:skkeleton_post() abort # " Restore current sources # if exists('b:skkeleton_ddc_backup') # call ddc#custom#set_buffer(b:skkeleton_ddc_backup) # endif # if dein#is_sourced('nvim-cmp') # lua require('vimrc.plug.cmp').change_sources('default') # endif #endfunction #function! s:tsuki() abort # lua require('vimrc.plug.skkeleton.tsuki2-263mod')() # tabedit # setlocal buftype=nofile bufhidden=hide noswapfile # call setline(1, readfile(expand('$DOTVIM/lua/vimrc/plug/skkeleton/tsukimod.txt'))) # vsplit #endfunction #command! SKKTsuki call s:tsuki() #function s:azik() abort # call skkeleton#azik#add_table('us') # call skkeleton#config(#{kanaTable: 'azik'}) # " https://github.com/NI57721/dotfiles/blob/79d2decf4b1e2bf5522c3af5f0ffdefd87b7ff50/.config/vim/vimrc#L378 # " sticky keyが無いと生きていけない # call skkeleton#register_keymap('input', ';', 'henkanPoint') # call skkeleton#register_kanatable('azik', #{l: ['っ', '']}) # call skkeleton#register_kanatable('azik', #{q: 'katakana'}) # call skkeleton#register_kanatable('azik', {':': 'disable'}) # call skkeleton#register_kanatable('azik', {"'": 'disable'}) #endfunction #command! SKKAzik call s:azik() # #'''