From 2d8e6274ec7c9abc131cf258eeadae885e4e54f2 Mon Sep 17 00:00:00 2001 From: Byron Torres Date: Wed, 24 May 2023 15:15:18 +0100 Subject: set '[haredoc] {symbol}' as buffer name --- plugin/haredoc.vim | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'plugin') 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 q :close -- cgit v1.2.3