~torresjrjr/public-inbox

vim-haredoc: Use :terminal in split window in Neovim v1 APPLIED

Max Schillinger: 1
 Use :terminal in split window in Neovim

 1 files changed, 3 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~torresjrjr/public-inbox/patches/46178/mbox | git am -3
Learn more about email & git

[PATCH vim-haredoc] Use :terminal in split window in Neovim Export this patch

---
Alternative to patch 46177.
 plugin/haredoc.vim | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/plugin/haredoc.vim b/plugin/haredoc.vim
index 3502184..ae8b4f7 100644
--- a/plugin/haredoc.vim
+++ b/plugin/haredoc.vim
@@ -76,6 +76,9 @@ function Haredoc(symbol)
		nnoremap <buffer> q  :close<CR>
		nnoremap <buffer> <nowait> u  <C-U>
		nnoremap <buffer> <nowait> d  <C-D>
	elseif has('nvim')
		split
		execute 'terminal haredoc '..symbol
	else
		execute '!haredoc '..symbol
	endif
-- 
2.42.0
Applied to master

commit 67013baf7d5136c8b992d1ae1ff6d957234d8241
Author: Max Schillinger <max@mxsr.de>
Date:   Sat Oct 28 16:00:56 2023 +0200

    neovim: use :terminal in split window