12 lines
260 B
Lua
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}
|