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 <igor@milhit.ch>
main
iGor milhit 2026-08-28 09:12:14 +02:00
parent a111e23eec
commit 89688c1a0c
Signed by: igor
GPG Key ID: 692D97C3D0228A99
2 changed files with 11 additions and 1 deletions

View File

@ -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[<u")
end,
})
-- Search and replace -- Search and replace
-- Ignore case except when using a capital case -- Ignore case except when using a capital case
-- Highlight found occurrences -- Highlight found occurrences

View File

@ -15,7 +15,6 @@ return {
autopairs.setup({ autopairs.setup({
-- Enable treesitter -- Enable treesitter
check_ts = true, check_ts = true,
disable_filetype = { "TelescopePrompt" },
ts_config = { ts_config = {
-- Don't add pairs in lua string treesitter nodes -- Don't add pairs in lua string treesitter nodes
lua = { "string" }, lua = { "string" },