mirror of
https://github.com/DefectingCat/nvim
synced 2025-07-16 01:01:34 +00:00
update toggleterm map
remap copy to system clipboard
This commit is contained in:
@ -39,3 +39,6 @@ map("n", "<leader>la", "<CMD>%bd|e#|bd#<CR>")
|
||||
map("n", "<leader>tc", ":tabclose<CR>", { desc = "Close current tab" })
|
||||
|
||||
map("v", "<leader>ss", ":s/\\%V", { desc = "Search and replace in visual selection" })
|
||||
|
||||
-- copy
|
||||
map({ "n", "v" }, "y", '"+y', { desc = "Copy to system clipboard" })
|
||||
|
@ -30,7 +30,10 @@ return {
|
||||
map({ "n", "t" }, "<A-u>", function()
|
||||
horizontal:toggle()
|
||||
end, { noremap = true, silent = true })
|
||||
map("n", "<C-/>", function()
|
||||
horizontal:toggle()
|
||||
end)
|
||||
end,
|
||||
keys = { "<A-i>", "<A-u>" },
|
||||
keys = { "<A-i>", "<A-u>", "<C-/>" },
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user