Skip to content

Commit

Permalink
zz
Browse files Browse the repository at this point in the history
  • Loading branch information
xiantang committed May 20, 2024
1 parent 6351cfc commit 89fa028
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/plugins/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ return {
if closest_function then
local start_row, start_col, _, _ = closest_function:range()
vim.api.nvim_win_set_cursor(0, { start_row + 1, start_col })
vim.api.nvim_feedkeys("zz", "n", false)
end
end
end
Expand Down

0 comments on commit 89fa028

Please sign in to comment.