This commit is contained in:
Yannick Reiß 2024-02-18 11:01:19 +01:00
commit c784a74fe3
No known key found for this signature in database
GPG Key ID: 5A3AF456F0A0338C
2 changed files with 23 additions and 0 deletions

9
lua/sourcer/init.lua Normal file
View File

@ -0,0 +1,9 @@
local M = {}
function M.lookup()
local keywords = vim.fn.getreg("")
print("Hallo Welt! " .. keywords)
end
return M

14
plugin/sourcer.vim Normal file
View File

@ -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 <yannick.reiss@nickr.eu>
" 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()