feat: enable live preview

This commit is contained in:
Klesh Wong 2021-10-02 10:12:45 +08:00
parent e5f5d2c785
commit e479146307
2 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,8 @@ if status is-interactive
set -gx LS_COLORS 'ow=34;42;40' set -gx LS_COLORS 'ow=34;42;40'
# === nnn configuration # === nnn configuration
set -gx NNN_PLUG 'c:fzcd;m:nmount;x:!chmod +x $nnn;d:dragdrop' set -gx NNN_PLUG 'c:fzcd;m:nmount;x:!chmod +x $nnn;d:dragdrop;p:preview-tui'
set -gx NNN_FIFO /tmp/nnn.fifo
# === bat configuration # === bat configuration
set -gx BAT_THEME 'OneHalfDark' set -gx BAT_THEME 'OneHalfDark'

View File

@ -381,6 +381,7 @@ autocmd BufWritePre *.go :OR
nnoremap <leader>tt :FloatermNew nnn<CR> nnoremap <leader>tt :FloatermNew nnn<CR>
let g:floaterm_autohide=1 let g:floaterm_autohide=1
let g:floaterm_autoclose=1 let g:floaterm_autoclose=1
let g:floaterm_shell='fish'
let g:floaterm_opener='edit' let g:floaterm_opener='edit'
let g:floaterm_keymap_new = '<F7>' let g:floaterm_keymap_new = '<F7>'
let g:floaterm_keymap_prev = '<F8>' let g:floaterm_keymap_prev = '<F8>'