-
-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't close floating window by pressing q
or Esc
#415
Comments
This is expected. nvim-dap is rather unopinionated and sticks to neovim defaults if they exist. The default mapping to close a window in neovim is I could set a |
@mfussenegger Thanks for adding the filetype! 👍 |
@jarviliam cool! |
very nice! Thanks a lot for this and the whole plug-in! |
see mfussenegger/nvim-dap#415 for more infos
Here's a lua counterpart to what @jarviliam suggested, if anyone needs this: vim.api.nvim_create_autocmd("FileType", {
pattern = "dap-float",
callback = function()
vim.api.nvim_buf_set_keymap(0, "n", "q", "<cmd>close!<CR>", { noremap = true, silent = true })
end
}) |
Steps to Reproduce
:lua require("dap.ui.widgets").hover()
Expected Result
Packer's, Trouble.nvim's, Telescope's windows & splits can be close by pressing either
q
orEsc
.I'm using LunarVim, maybe it affects this behavior somehow?
Actual Result
The only way to close the floating window is
:q
, becauseq
&Esc
don't work.nvim-dap_bugs.mp4
The text was updated successfully, but these errors were encountered: