aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByron Torres <b@torresjrjr.com>2023-05-24 15:15:18 +0100
committerByron Torres <b@torresjrjr.com>2023-05-24 15:30:15 +0100
commit2d8e6274ec7c9abc131cf258eeadae885e4e54f2 (patch)
tree0511201371e0dd579b2d437643971d54e39c8657
parentwipe unused terminal buffers (diff)
downloadvim-haredoc-2d8e6274ec7c9abc131cf258eeadae885e4e54f2.tar.gz
set '[haredoc] {symbol}' as buffer name
-rw-r--r--plugin/haredoc.vim9
1 files changed, 8 insertions, 1 deletions
diff --git a/plugin/haredoc.vim b/plugin/haredoc.vim
index e103181..219e770 100644
--- a/plugin/haredoc.vim
+++ b/plugin/haredoc.vim
@@ -40,7 +40,11 @@ function Haredoc(symbol)
\ 'sh', '-c',
\ "haredoc -Ftty '"..symbol.."' | less -RKX",
\ ],
- \ #{hidden: 1, term_finish: 'close'},
+ \ #{
+ \ term_name: '[haredoc] '..symbol,
+ \ hidden: 1,
+ \ term_finish: 'close',
+ \ },
\ )
call setbufvar(buf, "&bufhidden", 'wipe')
let minheight = 1 + system(
@@ -63,6 +67,9 @@ function Haredoc(symbol)
\ 'sh', '-c',
\ "haredoc -Ftty '"..symbol.."' | less -RKX",
\ ],
+ \ #{
+ \ term_name: '[haredoc] '..symbol,
+ \ },
\ )
set nonumber filetype=hare bufhidden=wipe
nnoremap <buffer> q :close<CR>