paste to terminal

This commit is contained in:
Christoph J. Scherr 2024-03-13 11:59:33 +01:00
parent 28a83d6c61
commit 069751a488
Signed by: cscherrNT
GPG Key ID: 8E2B45BC51A27EA7
1 changed files with 9 additions and 2 deletions

View File

@ -222,7 +222,10 @@ M.telescope = {
["<localleader>ma"] = { "<cmd> Telescope marks <cr>", "telescope bookmarks" },
-- lsp stuff
["<localleader>cw"] = { "<cmd> Telescope lsp_dynamic_workspace_symbols <cr>", "telescope dynamic workspace symbols" },
["<localleader>cw"] = {
"<cmd> Telescope lsp_dynamic_workspace_symbols <cr>",
"telescope dynamic workspace symbols",
},
["<localleader>cf"] = { "<cmd> Telescope lsp_document_symbols <cr>", "telescope document symbols" },
["<localleader>ci"] = { "<cmd> Telescope diagnostics <cr>", "telescope diagnostics" },
},
@ -384,6 +387,10 @@ M.movements = {
vim.api.nvim_replace_termcodes("<C-\\><C-N>", true, true, true),
"Escape terminal mode",
},
["<C-S-v>"] = {
'<C-w>"+pi',
"paste into terminal",
},
},
}
@ -436,7 +443,7 @@ M.edit = {
["<Down>"] = { ":move'>+<CR>gv=gv", "Move lines down", opts = { silent = true } },
["<Left>"] = { "<gv", "Less indentation" },
["<Right>"] = { ">gv", "More indentation" },
["<leader>fl"] = {":!fmt -w80<CR>", "Reorder lines"}
["<leader>fl"] = { ":!fmt -w80<CR>", "Reorder lines" },
},
x = {},
t = {