Skip to content

Commit 065b323

Browse files
committed
Add Plug
1 parent c323c51 commit 065b323

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

nvimrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ Plug 'nsf/gocode', { 'rtp': 'nvim', 'do': '~/.config/nvim/plugged/gocode/nvim/sy
3636

3737
" Ruby on Rails Development
3838
Plug 'tpope/vim-bundler'
39+
Plug 'tpope/vim-rake'
3940
Plug 'tpope/vim-rails'
4041
Plug 'vim-ruby/vim-ruby'
4142
Plug 'thoughtbot/vim-rspec'
43+
Plug 'ecomba/vim-ruby-refactoring'
4244

4345
" Syntax highlighting for VIM
4446
Plug 'tmux-plugins/vim-tmux'

settings/Settings.vim

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,17 @@ if executable('ag')
9797
let g:ctrlp_use_caching = 0
9898
endif
9999

100+
" Ruby refactory
101+
nnoremap <leader>rap :RAddParameter<cr>
102+
nnoremap <leader>rcpc :RConvertPostConditional<cr>
103+
nnoremap <leader>rel :RExtractLet<cr>
104+
vnoremap <leader>rec :RExtractConstant<cr>
105+
vnoremap <leader>relv :RExtractLocalVariable<cr>
106+
nnoremap <leader>rit :RInlineTemp<cr>
107+
vnoremap <leader>rrlv :RRenameLocalVariable<cr>
108+
vnoremap <leader>rriv :RRenameInstanceVariable<cr>
109+
vnoremap <leader>rem :RExtractMethod<cr>
110+
100111
" autocmd FileType ruby,eruby set filetype=ruby.eruby.chef
101112
" we need to force this detection first
102113
autocmd BufNewFile,BufRead */\(cookbooks\|site-cookbooks\)/*/\(attributes\|definitions\|libraries\|providers\|recipes\|resources\)/*.rb set filetype=ruby.chef

0 commit comments

Comments
 (0)