nixpkgs/home/programs/neovim/plugins/neoterm.vim
Daniel Siepmann 082ad58af1
Migrate neovim setup
I managed my setup manually.
This commit ports the existing setup to home-manager.

The program module is used to install neovim together with plugins.
Custom plugins are now maintained at Gitea / GitHub and loaded via nix as well.
2022-03-12 11:26:32 +01:00

13 lines
406 B
VimL

let g:neoterm_default_mod = 'botright'
" Source: https://github.com/kassio/neoterm/issues/81
" Allow rerun of last terminal command.
let g:my_last_t_command = ''
function! MyT(args)
let g:my_last_t_command = a:args
silent call neoterm#do(g:my_last_t_command)
endfunction
command! -bar -complete=shellcmd -nargs=+ T silent call MyT(<q-args>)
command! -bar ReT silent call MyT(g:my_last_t_command)