Skip to content

Commit

Permalink
fix: Allow mapping <esc> (#329)
Browse files Browse the repository at this point in the history
Before this change, adding `<esc` to `lsp.documentation.close.keys`
would result in the window being closed immediately after getting focus.
  • Loading branch information
runiq authored Jan 24, 2023
1 parent a66a5c6 commit b7e9054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/noice/message/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function Message:focus()
if win then
vim.api.nvim_set_current_win(win)
-- switch to normal mode
vim.api.nvim_input("<esc>")
vim.cmd("stopinsert")
return true
end
end
Expand Down

0 comments on commit b7e9054

Please sign in to comment.