fix new vimrc

This commit is contained in:
Diego Fernando Carrión 2024-09-29 19:14:22 +02:00
parent e384476ef3
commit 99f05cdbac
No known key found for this signature in database
GPG Key ID: 811EF2E03998BFC4

View File

@ -414,7 +414,7 @@ nnoremap <leader>. :lcd %:p:h<CR>
""""""noremap <Leader>e :e <C-R>=expand("%:p:h") . "/" <CR>
"" Opens a tab edit command with the path of the currently edited file filled
noremap <Leader>te :tabe <C-R>=expand("%:p:h") . "/" <CR>
""""""noremap <Leader>te :tabe <C-R>=expand("%:p:h") . "/" <CR>
"" fzf.vim
set wildmode=list:longest,list:full
@ -503,6 +503,13 @@ vnoremap K :m '<-2<CR>gv=gv
"" Open current line on GitHub
""""""nnoremap <Leader>o :.GBrowse<CR>
""" toggleterm
if has('nvim')
lua require("toggleterm").setup()
nnoremap <leader>t :ToggleTerm direction=float<CR>
endif
"*****************************************************************************
"" Custom configs
"*****************************************************************************
@ -563,8 +570,8 @@ augroup go
au FileType go nmap <Leader>db <Plug>(go-doc-browser)
au FileType go nmap <leader>r <Plug>(go-run)
au FileType go nmap <leader>t <Plug>(go-test)
au FileType go nmap <Leader>gt <Plug>(go-coverage-toggle)
au FileType go nmap <leader>gt <Plug>(go-test)
au FileType go nmap <Leader>ct <Plug>(go-coverage-toggle)
au FileType go nmap <Leader>i <Plug>(go-info)
au FileType go nmap <silent> <Leader>l <Plug>(go-metalinter)
au FileType go nmap <C-g> :GoDecls<cr>
@ -637,7 +644,7 @@ let g:tagbar_type_ruby = {
\ }
" RSpec.vim mappings
map <Leader>t :call RunCurrentSpecFile()<CR>
"""""map <Leader>t :call RunCurrentSpecFile()<CR>
map <Leader>s :call RunNearestSpec()<CR>
map <Leader>l :call RunLastSpec()<CR>
map <Leader>a :call RunAllSpecs()<CR>