vim-haredoc

[vim] haredoc plugin
git clone https://git.torresjrjr.com/vim-haredoc.git
Log | Files | Refs | README | LICENSE

commit dac78bc4593bf2dfce23e51b3033cffdf87010cd
parent 2f0d89f4e111503c0cd8e7bcdaaa8f93e7aef8dc
Author: Byron Torres <b@torresjrjr.com>
Date:   Wed, 24 May 2023 13:15:45 +0100

fix, don't try use statements in non-file buffers

Diffstat:
Mplugin/haredoc.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugin/haredoc.vim b/plugin/haredoc.vim @@ -16,7 +16,7 @@ function Haredoc(symbol) let &iskeyword = oldiskeyword " resolve possibly partial symbols (chrono::moment) - if match(symbol, "::") != -1 + if match(symbol, "::") != -1 && &buftype == '' let [parent, base] = split(symbol, "::")[-2:-1] " try joining symbol with a use statement.