From 89688c1a0c9165c929f7705177f60be402b54ac5 Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Fri, 28 Aug 2026 09:12:14 +0200 Subject: [PATCH] options: disable Kitty keyboard protocol - Disables temporary Kitty keyboard protocol as Ghostty does not handle it properly. To be remove when Ghostty v1.4.0 reach my system updates. Co-Authored-by: iGor milhit --- lua/core/options.lua | 11 +++++++++++ lua/plugins/autopairs.lua | 1 - 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lua/core/options.lua b/lua/core/options.lua index c71d027..6d7b451 100644 --- a/lua/core/options.lua +++ b/lua/core/options.lua @@ -1,3 +1,14 @@ +-- Disable Kitty keyboard protocol to prevent Ghostty from +-- duplicating characters on dead-key layouts (e.g. Swiss +-- French). Neovim 0.12+ enables key release events via this +-- protocol, which Ghostty mishandles for non-US layouts. +-- See: ghostty-org/ghostty#12433 +vim.api.nvim_create_autocmd("VimEnter", { + callback = function() + io.write("\x1b[