rspec and floaterm

This commit is contained in:
Tyrel Souza 2021-11-10 14:26:55 -05:00
parent b2ee5e515d
commit b75b84198e
No known key found for this signature in database
GPG Key ID: F3614B02ACBE438E
1 changed files with 13 additions and 1 deletions

View File

@ -17,6 +17,8 @@ call plug#begin('~/.vim/plugged')
Plug 'enricobacis/vim-airline-clock'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
Plug 'thoughtbot/vim-rspec'
Plug 'voldikss/vim-floaterm'
call plug#end()
map <C-o> :NERDTreeToggle<CR>
@ -67,6 +69,16 @@ let g:airline#extensions#clock#format = '%I:%M:%S %X'
nnoremap <leader>ff <cmd>Telescope find_files<cr>
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
nnoremap <leader>fb <cmd>Telescope buffers<cr>
nnoremap <leader>fh <cmd>Telescope help_tags<cr>
" nnoremap <leader>ft <cmd>Telescope help_tags<cr>
" RSpec.vim mappings
map <Leader>rt :call RunCurrentSpecFile()<CR>
map <Leader>rs :call RunNearestSpec()<CR>
map <Leader>rl :call RunLastSpec()<CR>
map <Leader>ra :call RunAllSpecs()<CR>
" Floaterm
let g:floaterm_keymap_toggle = '<F9>'
let g:floaterm_width = 0.85
let g:floaterm_height = 0.85