Created
June 25, 2020 16:05
-
-
Save ksmxxxxxx/9e4467ee32de35e70d62870aa3b715f1 to your computer and use it in GitHub Desktop.
Vimのプラグイン
This file contains 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
[[plugins]] | |
repo = 'Shougo/dein.vim' | |
[[plugins]] | |
repo = 'Shougo/vimproc.vim' | |
build = 'make' | |
[[plugins]] | |
repo = 'Shougo/neomru.vim' | |
on_path = '.*' | |
[[plugins]] | |
repo = 'Shougo/vimfiler' | |
[[plugins]] | |
repo = 'Shougo/denite.nvim' | |
depends = 'Shougo/neomru' | |
hook_add = ''' | |
nnoremap ,df :<C-u>DeniteBufferDir -buffer-name=files file<CR> | |
nnoremap ,db :<C-u>Denite buffer -buffer-name=files file<CR> | |
nnoremap ,dr :<C-u>Denite -buffer-name=register register<CR> | |
nnoremap ,dm :<C-u>Denite file_mru<CR> | |
nnoremap ,g :<C-u>Denite grep<CR> | |
autocmd FileType denite call s:denite_my_settings() | |
function! s:denite_my_settings() abort | |
nnoremap <silent><buffer><expr> <CR> | |
\ denite#do_map('do_action') | |
nnoremap <silent><buffer><expr> d | |
\ denite#do_map('do_action', 'delete') | |
nnoremap <silent><buffer><expr> p | |
\ denite#do_map('do_action', 'preview') | |
nnoremap <silent><buffer><expr> q | |
\ denite#do_map('quit') | |
nnoremap <silent><buffer><expr> i | |
\ denite#do_map('open_filter_buffer') | |
nnoremap <silent><buffer><expr> <Space> | |
\ denite#do_map('toggle_select').'j' | |
endfunction | |
''' | |
hook_post_source = ''' | |
call denite#custom#option('default', 'prompt', '>') | |
''' | |
[[plugins]] | |
repo = 'cocopon/iceberg.vim' | |
hook_add = ''' | |
set termguicolors | |
color iceberg | |
syntax on | |
''' | |
[[plugins]] | |
repo = 'Yggdroot/indentLine' | |
[[plugins]] | |
repo ='dense-analysis/ale' | |
on_i = 1 | |
[[plugins]] | |
repo = 'vim-airline/vim-airline' | |
depends = ['vim-airline/vim-airline-themes'] | |
hook_add = ''' | |
source ~/.config/nvim/rc/vim-airline.rc.vim | |
''' | |
[[plugins]] | |
repo = 'vim-airline/vim-airline-themes' | |
[[plugins]] | |
repo = 'vim-scripts/vim-auto-save' | |
hook_add = ''' | |
let g:auto_save = 1 | |
let g:auto_save_in_insert_mode = 0 | |
let g:auto_save_insert_mode = 0 | |
let g:auto_save_silent = 1 | |
''' | |
[[plugins]] | |
repo = 'prettier/vim-prettier' | |
build = 'yarn install' | |
on_ft = ['javascript', 'typescript', 'vue', 'css', 'scss', 'json', 'markdown'] | |
hook_source = ''' | |
let g:prettier#autoformat = 0 | |
let g:prettier#quickfix_enabled = 0 | |
autocmd BufWritePre *.js,*.ts,*.vue,*.css,*.scss,*.json,*.md PrettierAsync |
This file contains 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
# ============================================================================ | |
# Complement plugins | |
# ============================================================================ | |
[[plugins]] | |
repo = 'Shougo/deoplete.nvim' | |
on_i = 1 | |
hook_add = ''' | |
let g:deoplete#enable_at_startup = 1 | |
inoremap <expr><tab> pumvisible() ? "\<C-n>" : | |
\ neosnippet#expandable_or_jumpable() ? | |
\ "\<Plug>(neosnippet_expand_or_jump)" : "\<tab>" | |
''' | |
hook_post_source = ''' | |
call deoplete#custom#option({ | |
\ 'auto_complete_delay': 0, | |
\ 'max_list': 100 | |
\ }) | |
''' | |
[[plugins]] | |
repo = 'Shougo/neosnippet.vim' | |
depends = [ 'neosnippet-snippets', 'context_filetype.vim' ] | |
on_ft = 'snippet' | |
on_i = 1 | |
hook_add = ''' | |
set completeopt-=preview | |
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=i | |
endif | |
''' | |
[[plugins]] | |
repo = 'Shougo/neosnippet-snippets' | |
[[plugins]] | |
repo = 'Shougo/context_filetype.vim' | |
[[plugins]] | |
repo ='carlitux/deoplete-ternjs' | |
hook_post_update = ''' | |
call system ('npm install -g tern') | |
''' | |
hook_add = ''' | |
let g:deoplete#sources#ternjs#filetypes = [ | |
\ 'jsx', | |
\ 'javascript.jsx', | |
\ 'vue', | |
\ ] | |
''' | |
on_ft = ['javascript'] | |
[[plugins]] | |
repo = 'autozimu/LanguageClient-neovim' | |
rev = 'next' | |
build = 'bash install.sh' | |
hook_post_source = ''' | |
set hidden | |
let g:LanguageClient_serverCommands = { | |
\ 'vue': ['vls'], | |
\ } | |
nnoremap <silent> K :call LanguageClient_textDocument_hover()<CR> | |
nnoremap <silent> gd :call LanguageClient_textDocument_definition()<CR> | |
nnoremap <silent> <F2> :call LanguageClient_textDocument_rename()<CR> | |
''' | |
[[plugins]] | |
repo = 'fszymanski/deoplete-emoji' | |
depends = 'deoplete.nvim' | |
on_ft = ['markdown', 'gitcommit'] | |
# ============================================================================ | |
# grep && replace | |
# ============================================================================ | |
[[plugins]] | |
repo = 'thinca/vim-qfreplace' | |
# ============================================================================ | |
# Syntax | |
# ============================================================================ | |
[[plugins]] | |
repo = 'othree/html5.vim' | |
on_ft = [ 'html', 'vue' ] | |
[[plugins]] | |
repo = 'othree/yajs.vim' | |
on_ft = ['javascript'] | |
[[plugins]] | |
repo = 'hail2u/vim-css3-syntax' | |
[[plugins]] | |
repo = 'mxw/vim-jsx' | |
[[plugins]] | |
repo = 'cakebaker/scss-syntax.vim' | |
[[plugins]] | |
repo = 'slim-template/vim-slim' | |
[[plugins]] | |
repo = 'tpope/vim-haml' | |
[[plugins]] | |
repo = 'digitaltoad/vim-pug' | |
on_ft = 'pug' | |
[[plugins]] | |
repo = 'cespare/vim-toml' | |
on_ft = [ 'toml' ] | |
[[plugins]] | |
repo = 'mattn/emmet-vim' | |
on_ft = ['html', 'vue'] | |
[[plugins]] | |
repo = 'plasticboy/vim-markdown' | |
on_ft = ['markdown', 'md'] | |
[[plugins]] | |
repo = 'metakirby5/codi.vim' | |
[[plugins]] | |
repo = 'cohama/lexima.vim' | |
on_i = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment