Skip to content

Commit

Permalink
feat(util): trigger TroubleJump on jump. Closes #248
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jul 22, 2023
1 parent 615a869 commit d91f3b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/trouble/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function M.jump_to_item(win, precmd, item)
end
vim.api.nvim_set_current_buf(item.bufnr)
vim.api.nvim_win_set_cursor(win or 0, { item.start.line + 1, item.start.character })
vim.api.nvim_exec_autocmds("User", { pattern = "TroubleJump", modeline = false })
end

function M.fix_mode(opts)
Expand Down

0 comments on commit d91f3b3

Please sign in to comment.