From 02e2676721af827e8e2185ca69998f5644e2b096 Mon Sep 17 00:00:00 2001 From: jdhao Date: Fri, 30 Aug 2024 01:02:29 +0200 Subject: [PATCH] update documentation for resuming cursor position --- lua/custom-autocmd.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/custom-autocmd.lua b/lua/custom-autocmd.lua index 98566879..51a648ab 100644 --- a/lua/custom-autocmd.lua +++ b/lua/custom-autocmd.lua @@ -169,6 +169,10 @@ api.nvim_create_autocmd("FileType", { vim.inspect(ev), result)) end end) + -- the following two ways also seem to work, + -- ref: https://www.reddit.com/r/neovim/comments/104lc26/how_can_i_press_escape_key_using_lua/ + -- vim.api.nvim_feedkeys("g`\"", "n", true) + -- vim.fn.execute("normal! g`\"") end end, })