1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 18:38:00 +00:00

[neovim] Add base64 plugin

This commit is contained in:
Daniel Carrillo 2022-11-09 19:22:40 +01:00
parent 203e1c92c8
commit a642c809af
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
2 changed files with 7 additions and 2 deletions

View File

@ -73,8 +73,8 @@ keymap("n", "<leader>fb", ":Telescope buffers<CR>", opts)
keymap("n", "<leader>fc", ":Telescope commands<CR>", opts) keymap("n", "<leader>fc", ":Telescope commands<CR>", opts)
-- Comment -- Comment
keymap("n", "<leader>/", "<cmd>lua require('Comment.api').toggle.linewise.current()<CR>", opts) keymap("n", "<leader>/", "<cmd>lua require'Comment.api'.toggle.linewise.current()<CR>", opts)
keymap("x", "<leader>/", '<ESC><CMD>lua require("Comment.api").toggle.linewise(vim.fn.visualmode())<CR>') keymap("x", "<leader>/", "<ESC><CMD>lua require'Comment.api'.toggle.linewise(vim.fn.visualmode())<CR>")
-- DAP -- DAP
keymap("n", "<leader>db", "<cmd>lua require'dap'.toggle_breakpoint()<cr>", opts) keymap("n", "<leader>db", "<cmd>lua require'dap'.toggle_breakpoint()<cr>", opts)
@ -91,3 +91,7 @@ keymap("n", "<leader>dt", "<cmd>lua require'dap'.terminate()<cr>", opts)
keymap("n", "<leader>so", ":SessionManager load_session<cr>", opts) keymap("n", "<leader>so", ":SessionManager load_session<cr>", opts)
keymap("n", "<leader>sd", ":SessionManager delete_session<cr>", opts) keymap("n", "<leader>sd", ":SessionManager delete_session<cr>", opts)
keymap("n", "<leader>ss", ":SessionManager save_current_session<cr>", opts) keymap("n", "<leader>ss", ":SessionManager save_current_session<cr>", opts)
-- Base64
keymap("v", "<leader>64e", ":<c-u>lua require'b64'.encode()<cr>", opts)
keymap("v", "<leader>64d", ":<c-u>lua require'b64'.decode()<cr>", opts)

View File

@ -60,6 +60,7 @@ return packer.startup(function(use)
branch = "v2.x", branch = "v2.x",
requires = { "MunifTanjim/nui.nvim", commit = "d12a6977846b2fa978bff89b439e509320854e10" }, requires = { "MunifTanjim/nui.nvim", commit = "d12a6977846b2fa978bff89b439e509320854e10" },
}) })
use({ "taybart/b64.nvim", commit = "12dde6ebc3035f010833f513cfbd9abad92b28b3" })
-- Colorschemes -- Colorschemes
use({ "folke/tokyonight.nvim", commit = "a9f4933221c315037cc6700e964ce4d97f074206" }) use({ "folke/tokyonight.nvim", commit = "a9f4933221c315037cc6700e964ce4d97f074206" })