nvim_config/lua/config/custom.lua
2022-02-22 00:03:07 +01:00

12 lines
260 B
Lua

local win = require("plenary.window.float")
local function open_with_reader()
vim.cmd [[
normal! "uyiW
]]
win.centered({ winblend = 0 })
vim.fn.termopen('reader ' .. vim.fn.getreg('u'))
end
return {open_with_reader = open_with_reader, win = win}