Skip to content

Commit

Permalink
fix(hop): remove extra jump to line
Browse files Browse the repository at this point in the history
  • Loading branch information
champignoom committed Mar 1, 2024
1 parent a407232 commit 5133a23
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lua/neorg/modules/core/esupports/hop/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,12 @@ module.public = {
external_file = function()
open_split()

vim.api.nvim_cmd({ cmd = "edit", args = { located_link_information.path } }, {})

if located_link_information.line then
jump_to_line(located_link_information.line)
end
cmd = {
"edit",
located_link_information.line and "+" .. located_link_information.line or "",
vim.fn.fnameescape(located_link_information.path),
}
vim.api.nvim_command(table.concat(cmd, " "))
end,

buffer = function()
Expand Down

0 comments on commit 5133a23

Please sign in to comment.