From 309403099d51ee13bd0fe0d0f0e89e8994d659b9 Mon Sep 17 00:00:00 2001 From: workflow <4farlion@gmail.com> Date: Fri, 19 Jan 2024 15:31:18 +0000 Subject: [PATCH] feat(nvim): add b64 de/encoding --- home/neovim/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/home/neovim/default.nix b/home/neovim/default.nix index 6cfb7d49..67f36efb 100644 --- a/home/neovim/default.nix +++ b/home/neovim/default.nix @@ -189,6 +189,23 @@ in plugins = with pkgs.vimPlugins; [ argtextobj-vim + { + plugin = b64-nvim; # Base64 encoding/decoding + config = '' + local wk = require("which-key") + wk.register({ + b = { + name = "[B]ase64", + e = { require("b64").encode, "Base64 [E]ncode" }, + d = { require("b64").decode, "Base64 [D]ecode" }, + }, + }, { + prefix = "", + mode = "v", + }) + ''; + type = "lua"; + } vim-bookmarks { plugin = nixpkgs-unstable.vimPlugins.ChatGPT-nvim;