Add Keybindings, reading from yank register
This commit is contained in:
parent
c784a74fe3
commit
617fbea06b
|
@ -1,9 +1,9 @@
|
|||
local M = {}
|
||||
|
||||
function M.lookup()
|
||||
local keywords = vim.fn.getreg("")
|
||||
local keywords = vim.fn.getreg("*")
|
||||
|
||||
print("Hallo Welt! " .. keywords)
|
||||
print(keywords)
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
@ -12,3 +12,6 @@ let g:loaded_sourcer = 1
|
|||
|
||||
" Exposes the plugin's functions for use as commands in Neovim.
|
||||
command! -nargs=0 Lookup lua require("sourcer").lookup()
|
||||
|
||||
" Bind to keys fo in normal mode
|
||||
nnoremap fo :Lookup<CR>
|
||||
|
|
Loading…
Reference in New Issue