mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
fix(treesitter): close :InspectTree
with q
Problem: `:InspectTree` window does not follow precedent for focused "info windows" (like `checkhealth`, `Man`, etc.). Solution: Map `q` to `<C-w>c`.
This commit is contained in:
committed by
Christian Clason
parent
34c769dd89
commit
5a2edc483d
@ -451,6 +451,8 @@ function M.inspect_tree(opts)
|
||||
end,
|
||||
})
|
||||
|
||||
api.nvim_buf_set_keymap(b, 'n', 'q', '<C-w>c', { desc = 'Close language tree window' })
|
||||
|
||||
local group = api.nvim_create_augroup('nvim.treesitter.dev', {})
|
||||
|
||||
api.nvim_create_autocmd('CursorMoved', {
|
||||
|
Reference in New Issue
Block a user