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[