[[plugins]] repo = 'Shougo/ddc.vim' hook_add = ''' augroup StartDdc autocmd! autocmd InsertEnter,CmdlineEnter * ++once call s:ddc_setup() augroup END augroup MyDdcCmdLine autocmd! autocmd CmdlineEnter * call ddc#enable_cmdline_completion() augroup END function! s:ddc_setup() abort autocmd! StartDdc function s:confirm() let info = pum#complete_info() let index = info.selected if skkeleton#is_enabled() if info.selected == -1 call pum#map#insert_relative(1) endif return "\" endif if info.selected == -1 call pum#map#select_relative(+1) let index = 0 endif call pum#map#confirm() return "\" endfunction inoremap \ pum#visible() ? confirm() : \ (col('.') <= 1 getline('.')[col('.') - 2] =~# '\s') ? \ '' : ddc#map#manual_complete() inoremap call pum#map#select_relative(+1) inoremap call pum#map#select_relative(-1) inoremap call pum#map#confirm() inoremap call pum#map#cancel() inoremap call ddc#map#manual_complete({'sources': ['file']}) cnoremap \ pum#visible() ? 'call pum#map#insert_relative(+1)' : \ ddc#map#manual_complete() cnoremap call pum#map#insert_relative(-1) cnoremap call pum#map#confirm() call pum#set_option('setline_insert', v:false) call pum#set_option('scrollbar_char', '') " ~/dotfiles/nvim/denops/vimrc/plugins/ddc.ts call ddc#custom#load_config(expand("~/dotfiles/nvim/plugins/ddc.ts")) call dein#source(["vim-vsnip"]) call popup_preview#enable() call signature_help#enable() call ddc#enable() endfunction ''' [[plugins]] repo = 'Shougo/pum.vim' [[plugins]] repo = 'Shougo/ddc-ui-pum' [[plugins]] repo = 'Shougo/context_filetype.vim' [[plugins]] repo = 'Shougo/neco-vim' on_ft = ['vim', 'toml'] lazy = 1 [[plugins]] repo = 'Shougo/ddc-cmdline' [[plugins]] repo = 'Shougo/ddc-cmdline-history' [[plugins]] repo = 'Shougo/ddc-around' [[plugins]] repo = 'Shougo/ddc-source-input' [[plugins]] repo = 'Shougo/ddc-zsh' [[plugins]] repo = 'Shougo/ddc-matcher_head' [[plugins]] repo = 'Shougo/ddc-converter_remove_overlap' [[plugins]] repo = 'Shougo/ddc-sorter_rank' [[plugins]] repo = 'matsui54/ddc-dictionary' [[plugins]] repo = 'tani/ddc-fuzzy' [[plugins]] repo = 'Shougo/ddc-nvim-lsp' [[plugins]] repo = 'matsui54/ddc-buffer' [[plugins]] repo = 'matsui54/ddc-ultisnips' [[plugins]] repo = 'matsui54/ddc-filter_editdistance' [[plugins]] repo = "matsui54/ddc-postfilter_score" [[plugins]] repo = 'matsui54/ddc-converter_truncate' [[plugins]] repo = "gamoutatsumi/ddc-emoji" [[plugins]] repo = 'matsui54/denops-popup-preview.vim' hook_add = ''' let g:popup_preview_config = { \ 'delay': 30, \ 'maxWidth': 100, \ 'winblend': 0, \ 'debug': v:false, \ } let g:markdown_fenced_languages = ['ts=typescript'] ''' [[plugins]] repo = 'matsui54/denops-signature_help' hook_add = ''' let g:signature_help_config = { \ 'contentsStyle': 'labels', \ 'viewStyle': 'virtual', \ 'border': v:false, \ } ''' [[plugins]] repo = 'ray-x/lsp_signature.nvim' lazy = 1 if = "has('nvim')" on_source = 'nvim-lspconfig' [[plugins]] repo = 'shun/ddc-vim-lsp' [[plugins]] repo = 'LumaKernel/ddc-file' [[plugins]] repo = 'hrsh7th/vim-vsnip' lazy = 1 depends = ['friendly-snippets'] hook_add = ''' " Expand imap vsnip#expandable() ? '(vsnip-expand)' : '' smap vsnip#expandable() ? '(vsnip-expand)' : '' " Jump forward or backward imap vsnip#jumpable(1) ? '(vsnip-jump-next)' : '' smap vsnip#jumpable(1) ? '(vsnip-jump-next)' : '' imap vsnip#jumpable(-1) ? '(vsnip-jump-prev)' : '' smap vsnip#jumpable(-1) ? '(vsnip-jump-prev)' : '' let g:vsnip_snippet_dir = expand('~/dotfiles/nvim/snippets') ''' [[plugins]] repo = 'uga-rosa/ddc-source-vsnip' [[plugins]] repo = 'rafamadriz/friendly-snippets' [[plugins]] repo = 'vim-skk/denops-skkeleton.vim' lazy = 1 on_map = {ic = '(skkeleton-'} hook_add = ''' imap (skkeleton-toggle) cmap (skkeleton-toggle) function! s:skkeleton_init() abort " /で変換候補を戻す call skkeleton#register_keymap('henkan', "\", 'henkanBackward') call skkeleton#register_keymap('henkan', "\", 'henkanBackward') call skkeleton#register_keymap('henkan', "x", '') call skkeleton#config({ \ 'userJisyo': expand('~/.cache/skkeleton/skkeleton'), \ 'completionRankFile': expand('~/.cache/skkeleton/rank.json'), \ }) call skkeleton#register_kanatable('rom', { \ "z\": ["\u3000", ''], \ 'jj': 'escape', \ 'z,': [',', ''], \ 'z.': ['.', ''], \ 'z9': ['(', ''], \ 'z0': [')', ''], \ '~': ['~', ''], \ }) if has('win32') || has('win64') call skkeleton#config({ \ 'globalJisyo': expand('~/AppData/Local/skk/SKK-JISYO.L') \ }) endif endfunction autocmd User skkeleton-initialize-pre call s:skkeleton_init() augroup MyDdcSkkeleton autocmd! autocmd User skkeleton-enable-pre call s:skkeleton_pre() autocmd User skkeleton-disable-pre call s:skkeleton_post() augroup END function! s:skkeleton_pre() abort " Overwrite sources inoremap call pum#map#insert_relative(+1) inoremap call pum#map#insert_relative(-1) let s:prev_buffer_config = ddc#custom#get_buffer() call ddc#custom#patch_buffer('sources', ['skkeleton']) endfunction function! s:skkeleton_post() abort " Restore sources inoremap call pum#map#select_relative(+1) inoremap call pum#map#select_relative(-1) call ddc#custom#set_buffer(s:prev_buffer_config) endfunction '''