Generate QR codes from Neovim buffer text or a visual selection using pure Lua, then display the result inside Neovim.
- Pure-Lua QR generation at runtime
- Unicode block rendering directly inside Neovim
- Commands for whole-buffer and visual-selection encoding
- Neovim
With lazy.nvim:
{
"manno/qrencode-nvim",
opts = {
ecl = "M",
border = 4,
},
}Run :QREncodeBuffer to encode the current buffer.
Run :'<,'>QREncodeSelection to encode the current visual selection.
Run :QREncodeClose to close the preview.
require("qrencode").setup({
ecl = "M", -- one of: L, M, Q, H
border = 4,
})