diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index b00e69f..d5de949 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -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