Created
April 22, 2019 06:24
-
-
Save yu-orz/6df5e086bb43ecea40249070b8858bd6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Required: | |
[[plugins]] | |
repo = 'Shougo/dein.vim' | |
[[plugins]] | |
repo = 'leico/autodate.vim' | |
# deoplete------------------ | |
[[plugins]] | |
repo = 'roxma/nvim-yarp' | |
[[plugins]] | |
repo = 'roxma/vim-hug-neovim-rpc' | |
[[plugins]] | |
repo = 'Shougo/deoplete.nvim' | |
hook_add = ''' | |
let g:deoplete#enable_at_startup = 1 | |
let g:deoplete#auto_complete_delay = 0 | |
inoremap <expr><tab> pumvisible() ? "\<C-n>" : | |
\ neosnippet#expandable_or_jumpable() ? | |
\ "\<Plug>(neosnippet_expand_or_jump)" : "\<tab>" | |
''' | |
on_i = 1 | |
# neosnippet---------------- | |
[[plugins]] | |
repo = 'Shougo/neosnippet.vim' | |
depends = ['neosnippet-snippets', 'context_filetype.vim'] | |
on_i = 1 | |
hook_source = ''' | |
" Plugin key-mappings. | |
" Note: It must be "imap" and "smap". It uses <Plug> mappings. | |
"imap <C-k> <Plug>(neosnippet_expand_or_jump) | |
"smap <C-k> <Plug>(neosnippet_expand_or_jump) | |
"xmap <C-k> <Plug>(neosnippet_expand_target) | |
" SuperTab like snippets behavior. | |
" Note: It must be "imap" and "smap". It uses <Plug> mappings. | |
imap <expr><TAB> | |
\ pumvisible() ? "\<C-n>" : | |
\ neosnippet#expandable_or_jumpable() ? | |
\ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>" | |
imap <expr><CR> | |
\ (pumvisible() && neosnippet#expandable()) ? "\<Plug>(neosnippet_expand_or_jump)" : "\<CR>" | |
smap <expr><TAB> neosnippet#expandable_or_jumpable() ? | |
\ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>" | |
" For conceal markers. | |
"if has('conceal') | |
" set conceallevel=2 concealcursor=niv | |
"endif | |
''' | |
[[plugins]] | |
repo = 'Shougo/neosnippet-snippets' | |
[[plugins]] | |
repo = 'Shougo/context_filetype.vim' | |
[[plugins]] | |
repo = 'scrooloose/nerdtree' | |
hook_add = ''' | |
nnoremap nr :NERDTree<Return> | |
''' | |
[[plugins]] | |
repo = 'airblade/vim-gitgutter' | |
[[plugins]] | |
repo = 'Shougo/denite.nvim' | |
hook_add=''' | |
nnoremap <silent> <space>fy :<C-u>Denite neoyank<CR> | |
nnoremap <silent> <space>ff :<C-u>Denite file_rec<CR> | |
nnoremap <silent> <space>fu :<C-u>Denite outline<CR> | |
"" unite {{{2 | |
noremap <C-P> :Denite buffer<CR> | |
" ファイル一覧 | |
noremap <C-N> :Denite -buffer-name=file file<CR> | |
" 最近使ったファイルの一覧 | |
noremap <C-Z> :Denite file_mru<CR> | |
" sourcesを「今開いているファイルのディレクトリ」とする | |
noremap :uff :<C-u>DeniteWithBufferDir file -buffer-name=file<CR> | |
" 入力モードで開始する | |
let g:denite_enable_start_insert=1 | |
" バッファ一覧 | |
" ウィンドウを分割して開く | |
au FileType denite nnoremap <silent> <buffer> <expr> <C-J> unite#do_action('split') | |
au FileType denite inoremap <silent> <buffer> <expr> <C-J> unite#do_action('split') | |
" ウィンドウを縦に分割して開く | |
au FileType denite nnoremap <silent> <buffer> <expr> <C-K> unite#do_action('vsplit') | |
au FileType denite inoremap <silent> <buffer> <expr> <C-K> unite#do_action('vsplit') | |
" ESCキーを2回押すと終了する | |
au FileType denite nnoremap <silent> <buffer> <ESC><ESC> :q<CR> | |
au FileType denite inoremap <silent> <buffer> <ESC><ESC> <ESC>:q<CR> | |
''' | |
[[plugins]] | |
repo = 'Shougo/unite-outline' | |
[[plugins]] | |
repo = 'Shougo/neomru.vim' | |
[[plugins]] | |
repo = 'Shougo/neoyank.vim' | |
[[plugins]] | |
repo = 'glidenote/memolist.vim' | |
hook_add=''' | |
let g:memolist_path = "~/work/00_doc/memo" | |
''' | |
[[plugins]] | |
repo = 'dhruvasagar/vim-table-mode' | |
hook_add=''' | |
let g:terraform_fmt_on_save = 1 | |
let g:terraform_align = 1 | |
''' | |
[[plugins]] | |
repo = 'tpope/vim-fugitive' | |
[[plugins]] | |
repo = 'airblade/vim-gitgutter' | |
[[plugins]] | |
repo = 'itchyny/lightline.vim' | |
hook_add=''' | |
" lightline | |
let g:lightline = { | |
\ 'colorscheme': 'powerline', | |
\ 'mode_map': {'c': 'NORMAL'}, | |
\ 'active': { | |
\ 'left': [ ['mode', 'paste'], ['fugitive', 'filename', 'cakephp', 'currenttag', 'anzu'] ] | |
\ }, | |
\ 'component': { | |
\ 'lineinfo': '%3l:%-2v', | |
\ }, | |
\ 'component_expand': { | |
\ 'nyanmodoki': 'NyanModoki()', | |
\ }, | |
\ 'component_function': { | |
\ 'modified': 'MyModified', | |
\ 'readonly': 'MyReadonly', | |
\ 'fugitive': 'MyFugitive', | |
\ 'filename': 'MyFilename', | |
\ 'fileformat': 'MyFileformat', | |
\ 'filetype': 'MyFiletype', | |
\ 'fileencoding': 'MyFileencoding', | |
\ 'mode': 'MyMode', | |
\ } | |
\ } | |
function! MyModified() | |
return &ft =~ 'help\|vimfiler\|gundo' ? '' : &modified ? '+' : &modifiable ? '' : '-' | |
endfunction | |
function! MyReadonly() | |
return &ft !~? 'help\|vimfiler\|gundo' && &readonly ? ' ' : '' | |
endfunction | |
function! MyFilename() | |
return ('' != MyReadonly() ? MyReadonly() . ' ' : '') . | |
\ (&ft == 'vimfiler' ? vimfiler#get_status_string() : | |
\ &ft == 'unite' ? unite#get_status_string() : | |
\ &ft == 'vimshell' ? vimshell#get_status_string() : | |
\ '' != expand('%') ? expand('%') : '[No Name]') . | |
\ ('' != MyModified() ? ' ' . MyModified() : '') | |
endfunction | |
function! MyFugitive() | |
try | |
if &ft !~? 'vimfiler\|gundo' && exists('*fugitive#head') && strlen(fugitive#head()) | |
return ' ' . fugitive#head() | |
endif | |
catch | |
endtry | |
return '' | |
endfunction | |
function! MyFileformat() | |
return winwidth(0) > 70 ? &fileformat : '' | |
endfunction | |
function! MyFiletype() | |
return winwidth(0) > 70 ? (strlen(&filetype) ? &filetype : 'no ft') : '' | |
endfunction | |
function! MyFileencoding() | |
return winwidth(0) > 70 ? (strlen(&fenc) ? &fenc : &enc) : '' | |
endfunction | |
function! MyMode() | |
return winwidth(0) > 60 ? lightline#mode() : '' | |
endfunction | |
''' | |
[[plugins]] | |
repo = 'vim-syntastic/syntastic' | |
hook_add = ''' | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
''' | |
[[plugins]] | |
repo = 'hashivim/vim-terraform' | |
[[plugins]] | |
repo = 'juliosueiras/vim-terraform-completion' | |
[[plugins]] | |
repo = 'neomake/neomake' | |
if = ''' 1 ''' | |
hook_add = ''' | |
let g:neomake_open_list = 2 | |
autocmd! BufWritePost,BufEnter * Neomake | |
let g:neomake_error_sign = { | |
\ 'text': '', | |
\ 'texthl': 'Error', | |
\ } | |
let g:neomake_warning_sign = { | |
\ 'text': '', | |
\ 'texthl': 'Error', | |
\ } | |
let g:neomake_info_sign = { | |
\ 'text': '', | |
\ 'texthl': 'Title', | |
\ } | |
let g:neomake_message_sign = { | |
\ 'text': '', | |
\ 'texthl': 'Operator', | |
\ } | |
''' | |
[[plugins]] | |
repo = 'flazz/vim-colorschemes' | |
[[plugins]] | |
repo = 'majutsushi/tagbar' | |
[[plugins]] | |
repo = 'Shougo/neosnippet-snippets' | |
[[plugins]] | |
repo = 'Shougo/neosnippet' | |
hook_source = ''' | |
imap <C-k> <Plug>(neosnippet_expand_or_jump) | |
smap <C-k> <Plug>(neosnippet_expand_or_jump) | |
xmap <C-k> <Plug>(neosnippet_expand_target) | |
if has('conceal') | |
set conceallevel=2 concealcursor=niv | |
endif | |
''' | |
on_i = 1 | |
on_ft = ['snippet'] | |
depends = ['neosnippet-snippets'] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment