-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackages.vim
More file actions
105 lines (91 loc) · 3.34 KB
/
packages.vim
File metadata and controls
105 lines (91 loc) · 3.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
function! PackInit() abort
packadd minpac
call minpac#init()
call minpac#add('k-takata/minpac', {'type': 'opt'})
" Plugins loaded at start
call minpac#add('benmills/vimux')
call minpac#add('gabrielelana/vim-markdown')
call minpac#add('hashivim/vim-terraform')
call minpac#add('itspriddle/vim-shellcheck')
call minpac#add('jremmen/vim-ripgrep')
call minpac#add('junegunn/fzf')
call minpac#add('junegunn/fzf.vim')
call minpac#add('kana/vim-textobj-user')
call minpac#add('lepture/vim-jinja')
call minpac#add('mattn/emmet-vim')
call minpac#add('mbbill/undotree')
call minpac#add('msanders/snipmate.vim')
call minpac#add('mustache/vim-mustache-handlebars')
call minpac#add('mxw/vim-jsx')
call minpac#add('nelstrom/vim-textobj-rubyblock')
call minpac#add('pangloss/vim-javascript')
call minpac#add('pantharshit00/vim-prisma')
call minpac#add('pearofducks/ansible-vim')
call minpac#add('posva/vim-vue')
call minpac#add('psf/black')
call minpac#add('sunaku/vim-ruby-minitest')
call minpac#add('tpope/vim-bundler')
call minpac#add('tpope/vim-commentary')
call minpac#add('tpope/vim-endwise')
call minpac#add('tpope/vim-fugitive')
call minpac#add('tpope/vim-git')
call minpac#add('tpope/vim-projectionist')
call minpac#add('tpope/vim-rails')
call minpac#add('tpope/vim-rake')
call minpac#add('tpope/vim-repeat')
call minpac#add('tpope/vim-surround')
call minpac#add('tpope/vim-unimpaired')
call minpac#add('vim-ruby/vim-ruby')
call minpac#add('vim-scripts/indentpython.vim')
call minpac#add('vim-test/vim-test')
" Optional plugins, load them with `:packadd <name>`
endfunction
" Define user commands for updating/cleaning the plugins.
" Each of them calls PackInit() to load minpac and register
" the information of plugins, then performs the task.
command! PackUpdate call PackInit() | call minpac#update()
command! PackClean call PackInit() | call minpac#clean()
command! PackStatus packadd minpac | call minpac#status()
" Disable italics for comments (as used in the base16-woodland theme),
" which display as dark text on a reversed background in terminals that
" can't render italics.
highlight Comment cterm=NONE
" fugitive
nmap <leader>gs :G<CR>
nmap <leader>gf :diffget //2<CR>
nmap <leader>gj :diffget //2<CR>
" fzf.vim
nnoremap <C-p> :Files<cr>
nnoremap <leader>fg :GFiles<cr>
nnoremap <leader>b :Buffers<cr>
nnoremap <leader>fl :BLines<cr>
nnoremap <leader>fc :Commits<cr>
nnoremap <leader>fb :BCommits<cr>
nnoremap <leader>fC :Commands<cr>
nnoremap <leader>fh :Helptags<cr>
nnoremap <leader>ft :Tags<cr>
nnoremap <leader>fm :Maps<cr>
" markdown
nnoremap <leader>1 yypVr=
nnoremap <leader>2 yypVr-
" undotree
nnoremap <F5> :UndotreeToggle<CR>
" vim-ruby
let g:ruby_indent_private_protected_style = 'indent'
" vim-test
let test#strategy = "vimux"
let g:test#echo_command = 0
let g:test#preserve_screen = 1
let test#ruby#minitest#executable = 'docker compose exec web ruby -Itest'
nmap <silent> <leader>tn :TestNearest<CR>
nmap <silent> <leader>tf :TestFile<CR>
nmap <silent> <leader>ts :TestSuite<CR>
nmap <silent> <leader>tl :TestLast<CR>
nmap <silent> <leader>tv :TestVisit<CR>
" vimux
map <Leader>vp :VimuxPromptCommand<CR>
map <Leader>vl :VimuxRunLastCommand<CR>
map <Leader>vi :VimuxInspectRunner<CR>
map <Leader>vq :VimuxCloseRunner<CR>
map <Leader>vs :VimuxInterruptRunner<CR>
map <Leader>vc :VimuxClearRunnerHistory<CR>