[[plugins]] repo = 'vim-denops/denops.vim' [[plugins]] repo = 'Shougo/neoyank.vim' on_event = 'TextYankPost' on_source = ['denite.nvim'] [[plugins]] repo = 'skanehira/translate.vim' [[plugins]] repo = 'Shougo/neosnippet-snippets' [[plugins]] repo = 'Shougo/context_filetype.vim' [[plugins]] repo = 'Shougo/defx.nvim' hook_add = ''' nnoremap [Space]f \ :Defx -listed -resume -buffer-name=tab`tabpagenr()` ''' hook_source = ''' call defx#custom#column('mark', { \ 'readonly_icon': '', \ 'selected_icon': '', \ }) call defx#custom#column('icon', { \ 'directory_icon': '', \ 'opened_icon': '▾', \ 'root_icon': ' ', \ }) ''' [plugins.ftplugin] defx = ''' " Define mappings nnoremap \ defx#async_action('drop') nnoremap c \ defx#do_action('copy') nnoremap ! \ defx#do_action('execute_command') nnoremap m \ defx#do_action('move') nnoremap p \ defx#do_action('paste') nnoremap l \ defx#async_action('open') nnoremap E \ defx#do_action('open', 'vsplit') nnoremap P \ defx#do_action('preview') nnoremap o \ defx#async_action('open_or_close_tree') nnoremap O \ defx#async_action('open_tree_recursive') nnoremap K \ defx#do_action('new_directory') nnoremap N \ defx#do_action('new_file') nnoremap M \ defx#do_action('new_multiple_files') nnoremap C \ defx#do_action('toggle_columns', 'mark:filename:type:size:time') nnoremap S \ defx#do_action('toggle_sort', 'Time') nnoremap se \ defx#do_action('add_session') nnoremap sl \ defx#do_action('load_session') nnoremap d \ defx#do_action('remove_trash') nnoremap r \ defx#do_action('rename') nnoremap x \ defx#do_action('execute_system') nnoremap > \ defx#do_action('toggle_ignored_files') nnoremap . \ defx#do_action('repeat') nnoremap yy \ defx#do_action('yank_path') nnoremap h \ defx#async_action('cd', ['..']) nnoremap ~ \ defx#async_action('cd') nnoremap \ \ defx#do_action('cd', getcwd()) nnoremap q \ defx#do_action('quit') nnoremap \ defx#do_action('toggle_select') . 'j' nnoremap * \ defx#do_action('toggle_select_all') nnoremap j \ line('.') == line('$') ? 'gg' : 'j' nnoremap k \ line('.') == 1 ? 'G' : 'k' nnoremap \ defx#do_action('redraw') xnoremap \ defx#do_action('toggle_select_visual') nnoremap \ defx#do_action('print') nnoremap winnr('$') != 1 ? \ ':wincmd w' : \ ':Defx -buffer-name=temp -split=vertical' ''' [[plugins]] repo = 'Shougo/denite.nvim' on_cmd = 'Denite' hook_source = 'source ~/.vim/rc/plugins/denite.rc.vim' hook_add = ''' nnoremap ;r \ :Denite -buffer-name=register \ register neoyank xnoremap ;r \ :Denite -default-action=replace -buffer-name=register \ register neoyank nnoremap [Window] \ :Denite file/rec:~/.vim/rc nnoremap / line('$') > 10000 ? '/' : \ ":\Denite -buffer-name=search -start-filter -search line\" nnoremap n line('$') > 10000 ? 'n' : \ ":\Denite -buffer-name=search -resume -refresh \ -search -no-start-filter\" nnoremap * line('$') > 10000 ? '*' : \ ":\DeniteCursorWord -buffer-name=search -search line\" xnoremap * \ "qy:Denite -input=`@q` -buffer-name=search -search line nnoremap [Window]s :Denite file/point file/old \ -sorters=sorter/rank \ `finddir('.git', ';') != '' ? 'file/rec/git' : 'file/rec'` \ file file:new nnoremap tt &filetype == 'help' ? "g\" : \ ":\DeniteCursorWord -buffer-name=tag -immediately \ tag:include\" nnoremap tp &filetype == 'help' ? \ ":\pop\" : ":\Denite jump\" nnoremap [Window]n :Denite dein nnoremap ;g :Denite -buffer-name=search \ -no-empty grep nnoremap ft :Denite filetype nnoremap :Denite change jump nnoremap :DeniteCursorWord help nnoremap ;; \ :Denite command command_history ''' [plugins.ftplugin] denite = ''' " Define mappings nnoremap \ denite#do_map('do_action') nnoremap a \ denite#do_map('choose_action') nnoremap d \ denite#do_map('do_action', 'delete') nnoremap e \ denite#do_map('do_action', 'edit') nnoremap p \ denite#do_map('do_action', 'preview') nnoremap q \ denite#do_map('quit') nnoremap ' \ denite#do_map('quick_move') nnoremap i \ denite#do_map('open_filter_buffer') nnoremap \ denite#do_map('toggle_select').'j' nnoremap r \ denite#do_map('do_action', 'quickfix') nnoremap \ denite#do_map('restore_sources') ''' [[plugins]] repo = 'rhysd/vim-operator-surround' depends = 'vim-operator-user' on_map = {n = ''} hook_add = ''' nmap sa (operator-surround-append)a nmap sd (operator-surround-delete)a nmap sr (operator-surround-replace)a nmap sc (operator-surround-replace)a ''' [[plugins]] repo = 'raghur/fruzzy' on_source = ['denite.nvim'] hook_source = 'let g:fruzzy#sortonempty = 0' hook_post_update = 'call fruzzy#install()' # [[plugins]] # repo = 'Shougo/deoplete.nvim' # depends = 'context_filetype.vim' # on_event = 'InsertEnter' # hook_source = ''' # let g:deoplete#enable_at_startup = 1 # source ~/.vim/rc/plugins/deoplete.rc.vim # call deoplete#enable() # ''' # [[plugins]] # repo = 'ncm2/float-preview.nvim' # on_source = 'deoplete.nvim' # if = 'has("nvim")' # hook_source = ''' # let g:float_preview#docked = 0 # let g:float_preview#max_width = 60 # let g:float_preview#max_height = 20 # ''' [[plugins]] repo = 'rhysd/accelerated-jk' on_map = {n = ''} hook_add = ''' nmap j (accelerated_jk_gj) nmap k (accelerated_jk_gk) ''' [[plugins]] repo = 'skanehira/code2img.vim' [[plugins]] repo = 'nvim-treesitter/nvim-treesitter' if = 'has("nvim")' on_event = 'BufRead' hook_post_update = 'TSUpdate' hook_source = ''' lua <'} hook_add = ''' xmap I (niceblock-I) xmap A (niceblock-A) ''' [[plugins]] repo = 'lambdalisue/suda.vim' on_event = 'BufRead' hook_add = ''' let g:suda_smart_edit = 1 ''' [[plugins]] repo = '/mattn/vim-sonictemplate' [[plugins]] repo = 'Shougo/vinarise.vim' on_cmd = 'Vinarise' hook_add = ''' let g:vinarise_enable_auto_detect = 1 ''' [[plugins]] repo = 'gamoutatsumi/dps-ghosttext.vim' on_cmd = 'GhostStart' [[plugins]] repo = 'rcarriga/nvim-notify' on_lua = 'notify' [[plugins]] repo = 'dag/vim2hs' on_ft = 'haskell' hook_source = ''' let g:haskell_conceal = v:false '''