commit c784a74fe33ace4d12b03a6bcdafda07bff32032 Author: yannickreiss Date: Sun Feb 18 11:01:19 2024 +0100 init diff --git a/lua/sourcer/init.lua b/lua/sourcer/init.lua new file mode 100644 index 0000000..38259a9 --- /dev/null +++ b/lua/sourcer/init.lua @@ -0,0 +1,9 @@ +local M = {} + +function M.lookup() + local keywords = vim.fn.getreg("") + + print("Hallo Welt! " .. keywords) +end + +return M diff --git a/plugin/sourcer.vim b/plugin/sourcer.vim new file mode 100644 index 0000000..61b06ba --- /dev/null +++ b/plugin/sourcer.vim @@ -0,0 +1,14 @@ +" Title: ACM sourcer +" Description: Search for a selected text block for results in the ACM +" library +" Last Change: Sun 18 Feb 2024 10:36:59 CET +" Maintainer: Yannick Reiss + +" Avoid loading the plugin multiple times +if exists("g:loaded_sourcer") + finish +endif +let g:loaded_sourcer = 1 + +" Exposes the plugin's functions for use as commands in Neovim. +command! -nargs=0 Lookup lua require("sourcer").lookup()