fix: map wincmd instead of remap #34635

Same issue: a59b052857
This commit is contained in:
phanium
2025-06-25 21:33:58 +08:00
committed by GitHub
parent 684be736c1
commit 0694ca8822

View File

@ -450,7 +450,7 @@ function M.inspect_tree(opts)
end,
})
api.nvim_buf_set_keymap(b, 'n', 'q', '<C-w>c', { desc = 'Close language tree window' })
api.nvim_buf_set_keymap(b, 'n', 'q', '<Cmd>wincmd c<CR>', { desc = 'Close language tree window' })
local group = api.nvim_create_augroup('nvim.treesitter.dev', {})