From de00926ab57d5d61abc82e5ba5f466276c0f35d8 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Fri, 3 Feb 2023 17:14:01 +0000 Subject: Initial commit --- plugin/bulletjava.vim | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 plugin/bulletjava.vim (limited to 'plugin') diff --git a/plugin/bulletjava.vim b/plugin/bulletjava.vim new file mode 100644 index 0000000..3f56211 --- /dev/null +++ b/plugin/bulletjava.vim @@ -0,0 +1,9 @@ +augroup BulletJava + au! + autocmd TextYankPost * lua require'bulletjava'.on_text_yanked() + if has('rneovim') + autocmd TextPutPost *.java lua require'bulletjava'.on_text_put(vim.v.event.regname) + endif +augroup END + +noremap (bulletjava-put) plua require'bulletjava'.on_text_put(vim.v.register) -- cgit