AutoYADM commit: 2024-12-13 16:15:01

This commit is contained in:
Daniel Fichtinger 2024-12-13 16:15:01 -05:00
parent 0889491f30
commit 486f694fbd
3 changed files with 21 additions and 4 deletions

View file

@ -13,9 +13,8 @@ include ~/.cache/wal/colors-kitty.conf
background_opacity 0.8
map ctrl+shift+r no_op
map ctrl+shift+o no_op
# map ctrl+enter send_text all \u2190
map ctrl+enter send_text all \u2190
# map ctrl+enter with application nvim send_text all \u2190
map ctrl+enter send_text normal,application \u2190
# map ctrl+enter with application tmux send_text all \u2190
# map ctrl+enter send_text all \x0A

View file

@ -4,8 +4,14 @@
local wk = require("which-key")
local map = vim.keymap.set
map({ "n" }, "<Esc>[91~", function()
vim.notify("Done!")
-- Tmux won't forward <C-Cr> to Neovim.
-- So, I've mapped ctrl+enter to \u2190 in kitty,
-- which is the "←" unicode symbol.
KITTY_SPECIAL = ""
map({ "n", "i", "x" }, KITTY_SPECIAL, "<C-Cr>", { remap = true })
map({ "n" }, "<C-Cr>", function()
vim.notify("Special!")
end)
vim.keymap.set({ "i", "n" }, "<C-t>", "<Nop>")

View file

@ -0,0 +1,12 @@
local M = {}
M.config = {
special = "",
remap = "<C-Cr>",
}
M.setup = function(opts)
M.config = vim.tbl_extend("force", M.config, opts)
end
return M