diff options
| author | phanium <91544758+phanen@users.noreply.github.com> | 2025-05-24 18:02:11 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-24 12:02:11 +0200 |
| commit | a59b052857ca43997b9e8be0a1d5c870ce172807 (patch) | |
| tree | 097a162de068a831f06e368ac7f1a977b4e591f6 /runtime/lua/vim/_extui/shared.lua | |
| parent | c9d8468020308fc7a77ad8930292e16cec2bf1b7 (diff) | |
| download | rneovim-a59b052857ca43997b9e8be0a1d5c870ce172807.tar.gz rneovim-a59b052857ca43997b9e8be0a1d5c870ce172807.tar.bz2 rneovim-a59b052857ca43997b9e8be0a1d5c870ce172807.zip | |
fix(extui): map wincmd instead of remapped key (#34151)
Problem: "q" cannot close window when `<c-w>` is mapped.
Solution: Map q to `<Cmd>wincmd c<CR>`.
Diffstat (limited to 'runtime/lua/vim/_extui/shared.lua')
| -rw-r--r-- | runtime/lua/vim/_extui/shared.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/_extui/shared.lua b/runtime/lua/vim/_extui/shared.lua index 76eb744135..b50c9baf5f 100644 --- a/runtime/lua/vim/_extui/shared.lua +++ b/runtime/lua/vim/_extui/shared.lua @@ -47,7 +47,7 @@ function M.tab_check_wins() M.cmd.highlighter = vim.treesitter.highlighter.new(parser) elseif type == 'more' then -- Close more window with `q`, same as `checkhealth` - api.nvim_buf_set_keymap(M.bufs.more, 'n', 'q', '<C-w>c', {}) + api.nvim_buf_set_keymap(M.bufs.more, 'n', 'q', '<Cmd>wincmd c<CR>', {}) end end |