From 069751a4885bca622346d9730946d42daa07e8cf Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Wed, 13 Mar 2024 11:59:33 +0100 Subject: [PATCH] paste to terminal --- lua/custom/mappings.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lua/custom/mappings.lua b/lua/custom/mappings.lua index cc07fa9..246285d 100644 --- a/lua/custom/mappings.lua +++ b/lua/custom/mappings.lua @@ -222,7 +222,10 @@ M.telescope = { ["ma"] = { " Telescope marks ", "telescope bookmarks" }, -- lsp stuff - ["cw"] = { " Telescope lsp_dynamic_workspace_symbols ", "telescope dynamic workspace symbols" }, + ["cw"] = { + " Telescope lsp_dynamic_workspace_symbols ", + "telescope dynamic workspace symbols", + }, ["cf"] = { " Telescope lsp_document_symbols ", "telescope document symbols" }, ["ci"] = { " Telescope diagnostics ", "telescope diagnostics" }, }, @@ -384,6 +387,10 @@ M.movements = { vim.api.nvim_replace_termcodes("", true, true, true), "Escape terminal mode", }, + [""] = { + '"+pi', + "paste into terminal", + }, }, } @@ -436,7 +443,7 @@ M.edit = { [""] = { ":move'>+gv=gv", "Move lines down", opts = { silent = true } }, [""] = { ""] = { ">gv", "More indentation" }, - ["fl"] = {":!fmt -w80", "Reorder lines"} + ["fl"] = { ":!fmt -w80", "Reorder lines" }, }, x = {}, t = {