Skip to content

Commit

Permalink
feat(float): switch to normal mode on jump
Browse files Browse the repository at this point in the history
See #80
  • Loading branch information
rcarriga committed Feb 17, 2022
1 parent ad3539d commit 120cb68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/dapui/windows/float.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ function Float:get_buf()
end

function Float:jump_to()
if vim.fn.mode(true) ~= "n" then
vim.cmd([[call feedkeys("\<C-\>\<C-N>", "n")]])
end
api.nvim_set_current_win(self.win_id)
end

Expand Down

0 comments on commit 120cb68

Please sign in to comment.