[[plugins]] repo = 'neovim/nvim-lspconfig' [[plugins]] repo = 'Sirver/ultisnips' hook_add = ''' " Trigger configuration. You need to change this to something else than if you use https://github.com/Valloric/YouCompleteMe. let g:UltiSnipsExpandTrigger="" let g:UltiSnipsJumpForwardTrigger="" " let g:UltiSnipsJumpBackwardTrigger="" " If you want :UltiSnipsEdit to split your window. let g:UltiSnipsEditSplit="vertical" ''' [[plugins]] repo = 'honza/vim-snippets' [[plugins]] repo = 'Shougo/deoplete.nvim' hook_add = ''' let g:deoplete#enable_at_startup = 1 " imap pumvisible() ? "\" : "\" " Expand the completed snippet trigger by . " trial 1 " imap " \ (pumvisible() && neosnippet#expandable()) ? " \ "\(neosnippet_expand)" : "=my_cr_function()" " " trial 2 inoremap "=deoplete#close_popup()" call deoplete#custom#option({ \'camel_case': v:true, \'auto_complete_delay': 0, \'smart_case': v:true, \'refresh_always': v:false, \'buffer_path': v:true, \'min_pattern_length': 1, \'max_list': 100, \}) " limit only to deoplete-zsh when in deol buffer call deoplete#custom#option('sources', { 'zsh': ['zsh'], }) ''' [[plugins]] repo = 'Shougo/deoplete-lsp' [[plugins]] repo = 'woodyZootopia/iceberg.vim' rev = 'support_LSP' [[plugins]] repo = 'cocopon/pgmnt.vim' [[plugins]] repo = 'altercation/vim-colors-solarized' [[plugins]] repo = 'cohama/lexima.vim' [[plugins]] repo = 'Shougo/defx.nvim' hook_add = ''' call defx#custom#column('indent',{'indent': "-"}) nnoremap st :Defx -new -auto-cd -columns=time:size:indent:icons:filename -show-ignored-files `expand('%:p:h')` -search=`expand('%:p')` -split=tab -floating-preview -preview-height=`float2nr(eval('&lines')*0.9)` -preview-width=`float2nr(eval('&columns')*0.9)` nnoremap d :Defx -new -auto-cd -columns=time:size:indent:icons:filename -show-ignored-files `expand('%:p:h')` -search=`expand('%:p')` -split=no -floating-preview -preview-height=`float2nr(eval('&lines')*0.9)` -preview-width=`float2nr(eval('&columns')*0.9)` nnoremap z :Defx -new -auto-cd -columns=size:indent:filename:time -show-ignored-files `expand('%:p:h')` -search=`expand('%:p')` -split=floating -floating-preview -preview-height=`float2nr(eval('&lines')*0.9)` -preview-width=`float2nr(eval('&columns')*0.9)` nnoremap n :Defx -new -auto-cd -columns=size:indent:icons:filename -show-ignored-files `expand('%:p:h')` -search=`expand('%:p')` -split=vertical -floating-preview -preview-height=`float2nr(eval('&lines')*0.9)` -preview-width=`float2nr(eval('&columns')*0.9)` -winwidth=40 autocmd FileType defx call s:defx_my_settings() function! s:defx_my_settings() abort " Define mappings nnoremap defx#do_action('open') nnoremap o defx#is_directory()?defx#do_action('open_or_close_tree'):defx#do_action('drop') nnoremap O defx#is_directory()?defx#do_action('open_tree_recursive'):defx#do_action('drop','tabnew') nnoremap <2-LeftMouse> defx#do_action('open') nnoremap l defx#do_action('open_directory') nnoremap K defx#do_action('new_directory') nnoremap L defx#do_action('new_file') nnoremap h defx#do_action('cd',['..']) nnoremap d defx#do_action('remove',['..']) nnoremap r defx#do_action('rename',['..']) nnoremap ~ defx#do_action('cd') nnoremap v defx#do_action('toggle_select').'j' nnoremap R defx#do_action('redraw') nnoremap yy defx#do_action('yank_path') nnoremap ! defx#do_action('execute_command') nnoremap i defx#do_action('execute_command') nnoremap x defx#do_action('execute_system') nnoremap . defx#do_action('toggle_ignored_files') nnoremap c defx#do_action('copy') nnoremap p defx#do_action('preview') nnoremap P defx#do_action('paste') nnoremap Se defx#do_action('toggle_sort', 'extension') nnoremap Sn defx#do_action('toggle_sort', 'filename') nnoremap Ss defx#do_action('toggle_sort', 'size') nnoremap St defx#do_action('toggle_sort', 'time') nnoremap gd :call git_diff_of_directory() endfunction function! s:drop_and_back() call defx#do_action('open') " exe "normal \h" endfunction function! s:git_diff_of_directory() exe "tabnew" exe "read !git diff" exe "setf diff" exe "setlocal buftype=nofile" exe "setlocal bufhidden=hide" exe "setlocal noswapfile" endfunction ''' [[plugins]] repo = 'kristijanhusak/defx-icons' [[plugins]] repo = 'Shougo/deol.nvim' [[plugins]] repo = 'kristijanhusak/defx-git' [[plugins]] repo = 'junegunn/fzf' build = './install --bin' hook_install = ''' fzf#install() ''' [[plugins]] repo = 'junegunn/fzf.vim' depends = 'fzf' hook_add = ''' nnoremap fr History nnoremap ff Files nnoremap fb Buffers nnoremap fc History: " nnoremap fgc Commits nnoremap fm Maps nnoremap fh Helptags nnoremap ft Tags nnoremap fg Rg ''' [[plugins]] repo = 'Shougo/neomru.vim' [[plugins]] repo = 'Shougo/neoyank.vim' [[plugins]] repo = 'haya14busa/vim-asterisk' hook_add = ''' map * (asterisk-*) map # (asterisk-#) map g* (asterisk-g*) map g# (asterisk-g#) map z* (asterisk-z*) map gz* (asterisk-gz*) map z# (asterisk-z#) map gz# (asterisk-gz#) let g:asterisk#keeppos = 1 ''' [[plugins]] repo = 'neoclide/denite-git' [[plugins]] repo = 'Yggdroot/indentLine' hook_add = ''' let g:indentLine_fileTypeExclude = ['defx', 'text'] let g:indentLine_fileType = ['cpp', 'c', 'python', 'rust'] let g:indentLine_bufTypeExclude = ['help', 'terminal'] let g:indentLine_char = "|" ''' [[plugins]] repo = 'kana/vim-smartinput' [[plugins]] repo = 'osyo-manga/shabadou.vim' [[plugins]] repo = 'kana/vim-operator-user' [[plugins]] repo = 'rhysd/vim-operator-surround' [[plugins]] repo = 'kana/vim-textobj-user' hook_add = ''' " operator mappings map sa (operator-surround-append) map sd (operator-surround-delete) map sr (operator-surround-replace) omap ab (textobj-multiblock-a) omap ib (textobj-multiblock-i) vmap ab (textobj-multiblock-a) vmap ib (textobj-multiblock-i) " if you use vim-textobj-multiblock nmap sdd (operator-surround-delete)(textobj-multiblock-a) nmap srr (operator-surround-replace)(textobj-multiblock-a) " if you use vim-textobj-between nmap sdb (operator-surround-delete)(textobj-between-a) nmap srb (operator-surround-replace)(textobj-between-a) ''' [[plugins]] repo = 'kana/vim-textobj-syntax' [[plugins]] repo = 'thinca/vim-textobj-between' [[plugins]] repo = 'osyo-manga/vim-textobj-multiblock' [[plugins]] repo = 'kana/vim-textobj-entire' hook_add = ''' let g:textobj_entire_no_default_key_mappings = 1 omap av (textobj-entire-a) omap iv (textobj-entire-i) xmap av (textobj-entire-a) xmap iv (textobj-entire-i) ''' [[plugins]] repo = 'airblade/vim-gitgutter' hook_add = ''' let g:gitgutter_preview_win_floating = 0 nmap hs (GitGutterStageHunk) " nmap ha (GitGutterStageHunk) nmap hu (GitGutterUndoHunk) nmap hp (GitGutterPreviewHunk) nmap hv (GitGutterPreviewHunk) nmap ]c (GitGutterNextHunk) nmap [c (GitGutterPrevHunk) omap ic (GitGutterTextObjectInnerPending) omap ac (GitGutterTextObjectOuterPending) xmap ic (GitGutterTextObjectInnerVisual) xmap ac (GitGutterTextObjectOuterVisual) nmap ]h (GitGutterNextHunk) nmap [h (GitGutterPrevHunk) omap ih (GitGutterTextObjectInnerPending) omap ah (GitGutterTextObjectOuterPending) xmap ih (GitGutterTextObjectInnerVisual) xmap ah (GitGutterTextObjectOuterVisual) ''' [[plugins]] repo = 'scrooloose/nerdcommenter' hook_add = ''' let g:NERDSpaceDelims=1 let g:NERDDefaultAlign='left' let g:NERDCustomDelimiters = {'vim': {'left': '"','right':''}} ''' [[plugins]] repo = 'tpope/vim-fugitive' hook_add = ''' nnoremap gs :Git T nnoremap ga :Gwrite nnoremap gc :Git commit -v nnoremap gb :Git blame nnoremap gl :tab sp:Gclogj nnoremap gh :tab sp:0Gclog " abbrev for git history: create new quickfix tab for history nnoremap gp :Git push nnoremap gf :Git fetch nnoremap gd :Gvdiff! nnoremap gr :Git rebase -i nnoremap gg :Glgrep "" nnoremap gm :Git merge ''' [[plugins]] repo = 'junegunn/vim-easy-align' hook_add = ''' xmap ga (EasyAlign) ''' [[plugins]] repo = 'majutsushi/tagbar' hook_add = ''' nmap t :TagbarToggle let g:tagbar_type_go = { \ 'ctagstype' : 'go', \ 'kinds' : [ \ 'p:package', \ 'i:imports:1', \ 'c:constants', \ 'v:variables', \ 't:types', \ 'n:interfaces', \ 'w:fields', \ 'e:embedded', \ 'm:methods', \ 'r:constructor', \ 'f:functions' \ ], \ 'sro' : '.', \ 'kind2scope' : { \ 't' : 'ctype', \ 'n' : 'ntype' \ }, \ 'scope2kind' : { \ 'ctype' : 't', \ 'ntype' : 'n' \ }, \ 'ctagsbin' : 'gotags', \ 'ctagsargs' : '-sort -silent' \ } let g:tagbar_sort = 0 let g:tagbar_autoclose = 0 ''' [[plugins]] repo = 'Shougo/echodoc.vim' [[plugins]] repo = 'micke/vim-hybrid' [[plugins]] repo = 'mbbill/undotree' hook_add = ''' nnoremap U :UndotreeToggle ''' [[plugins]] repo = 'fuenor/jpmoveword.vim' [[plugins]] repo = 'tpope/vim-rhubarb' [[plugins]] repo = 'JuliaEditorSupport/julia-vim' [[plugins]] repo = 'hoob3rt/lualine.nvim' hook_add = ''' lua << EOF require'lualine'.setup{ options={ theme='iceberg_light', }, } EOF ''' [[plugins]] repo = 'kyazdani42/nvim-web-devicons' [[plugins]] repo = 'jpalardy/vim-slime' hook_add = ''' nmap SlimeParagraphSend nmap SlimeParagraphSend}/[^\n] nmap SlimeParagraphSend{?[^\n] ''' [[plugins]] repo = 'tikhomirov/vim-glsl' [[plugins]] repo = 'Shougo/neco-syntax' [[plugins]] repo = 'skywind3000/asyncrun.vim' hook_add = ''' let g:asyncrun_bell=1 let g:asyncrun_open = 8 ''' [[plugins]] repo = 'woodyZootopia/NeoDebug' [[plugins]] repo = 'yuratomo/gmail.vim' [[plugins]] repo = 'woodyZootopia/gitsession.vim' hook_add = ''' if !exists('g:vscode') let g:gitsession_autosave = 1 let g:gitsession_tmp_dir = expand("~/.config/nvim/tmp/gitsession") endif ''' [[plugins]] repo = 'LeafCage/vimhelpgenerator.git' [[plugins]] repo = 'tversteeg/registers.nvim' [[plugins]] repo = 'https://github.com/inkarkat/vim-SpellCheck' [[plugins]] repo = 'https://github.com/inkarkat/vim-ingo-library' [[plugins]] repo = 'tweekmonster/helpful.vim'