From a642c809af9f9f31cc7cd4cf67606cf8137a0a01 Mon Sep 17 00:00:00 2001 From: Daniel Carrillo Date: Wed, 9 Nov 2022 19:22:40 +0100 Subject: [PATCH] [neovim] Add base64 plugin --- .config/nvim/lua/core/keymaps.lua | 8 ++++++-- .config/nvim/lua/core/plugins.lua | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/core/keymaps.lua b/.config/nvim/lua/core/keymaps.lua index 79e4f21..51ade42 100644 --- a/.config/nvim/lua/core/keymaps.lua +++ b/.config/nvim/lua/core/keymaps.lua @@ -73,8 +73,8 @@ keymap("n", "fb", ":Telescope buffers", opts) keymap("n", "fc", ":Telescope commands", opts) -- Comment -keymap("n", "/", "lua require('Comment.api').toggle.linewise.current()", opts) -keymap("x", "/", 'lua require("Comment.api").toggle.linewise(vim.fn.visualmode())') +keymap("n", "/", "lua require'Comment.api'.toggle.linewise.current()", opts) +keymap("x", "/", "lua require'Comment.api'.toggle.linewise(vim.fn.visualmode())") -- DAP keymap("n", "db", "lua require'dap'.toggle_breakpoint()", opts) @@ -91,3 +91,7 @@ keymap("n", "dt", "lua require'dap'.terminate()", opts) keymap("n", "so", ":SessionManager load_session", opts) keymap("n", "sd", ":SessionManager delete_session", opts) keymap("n", "ss", ":SessionManager save_current_session", opts) + +-- Base64 +keymap("v", "64e", ":lua require'b64'.encode()", opts) +keymap("v", "64d", ":lua require'b64'.decode()", opts) diff --git a/.config/nvim/lua/core/plugins.lua b/.config/nvim/lua/core/plugins.lua index 93d638a..b3eab5d 100644 --- a/.config/nvim/lua/core/plugins.lua +++ b/.config/nvim/lua/core/plugins.lua @@ -60,6 +60,7 @@ return packer.startup(function(use) branch = "v2.x", requires = { "MunifTanjim/nui.nvim", commit = "d12a6977846b2fa978bff89b439e509320854e10" }, }) + use({ "taybart/b64.nvim", commit = "12dde6ebc3035f010833f513cfbd9abad92b28b3" }) -- Colorschemes use({ "folke/tokyonight.nvim", commit = "a9f4933221c315037cc6700e964ce4d97f074206" })