Difference between revisions of "Floaterm"
From EdWiki
m (→Floaterm Commands) |
m (→Floaterm Commands) |
||
Line 34: | Line 34: | ||
=== Floaterm Commands === | === Floaterm Commands === | ||
Here is my which key configuration: | Here is my which key configuration: | ||
− | + | <pre> | |
let g:which_key_map.t = { | let g:which_key_map.t = { | ||
\ 'name' : '+terminal' , | \ 'name' : '+terminal' , |
Latest revision as of 03:36, 24 February 2021
Install
Plug 'voldikss/vim-floaterm'
Create config file
touch ~/.config/nvim/plug-config/floaterm.vim
Make sure to source this file in init.vim
source $HOME/.config/nvim/plug-config/floaterm.vim
Floaterm
Floaterm is a floating terminal for Neovim
Configure Floaterm
let g:floaterm_keymap_toggle = '<F1>' let g:floaterm_keymap_next = '<F2>' let g:floaterm_keymap_prev = '<F3>' let g:floaterm_keymap_new = '<F4>' " Floaterm let g:floaterm_gitcommit='floaterm' let g:floaterm_autoinsert=1 let g:floaterm_width=0.8 let g:floaterm_height=0.8 let g:floaterm_wintitle=0 let g:floaterm_autoclose=1
Floaterm Commands
Here is my which key configuration:
let g:which_key_map.t = { \ 'name' : '+terminal' , \ ';' : [':FloatermNew --wintype=popup --height=6' , 'terminal'], \ 'f' : [':FloatermNew fzf' , 'fzf'], \ 'g' : [':FloatermNew lazygit' , 'git'], \ 'd' : [':FloatermNew lazydocker' , 'docker'], \ 'n' : [':FloatermNew node' , 'node'], \ 'N' : [':FloatermNew nnn' , 'nnn'], \ 'p' : [':FloatermNew python' , 'python'], \ 'r' : [':FloatermNew ranger' , 'ranger'], \ 't' : [':FloatermToggle' , 'toggle'], \ 'y' : [':FloatermNew ytop' , 'ytop'], \ 's' : [':FloatermNew ncdu' , 'ncdu'], \ }