From 89fa02853af6e8c1e458043c963ccac69c98d429 Mon Sep 17 00:00:00 2001 From: xiantang Date: Mon, 20 May 2024 22:34:05 +0800 Subject: [PATCH] zz --- lua/plugins/treesitter.lua | 1 + 1 file changed, 1 insertion(+) 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