From 184b932b78004c2fe1d4fa7abe89728d2f044215 Mon Sep 17 00:00:00 2001 From: borja Date: Tue, 5 Dec 2023 09:46:16 +0100 Subject: [PATCH] test --- plugin/todoer.lua | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/plugin/todoer.lua b/plugin/todoer.lua index f832cec..b95a87a 100644 --- a/plugin/todoer.lua +++ b/plugin/todoer.lua @@ -37,10 +37,7 @@ local function press_tab() if string.match(current_line, openpattern) or string.match(current_line, closedpattern) then print("tab pressed, allegedly") - vim.api.nvim_feedkeys(vim.api.nvim_eval('"\\"'), "n", true) - vim.api.nvim_feedkeys(">", "n", true) - vim.api.nvim_feedkeys(">", "n", true) - vim.api.nvim_feedkeys("A", "n", true) + vim.api.nvim_feedkeys("C-t", "i", true) end end vim.keymap.set("i", "", press_tab, { desc = "On tab", noremap = true, expr = true }) @@ -55,10 +52,7 @@ local function press_shift_tab() if string.match(current_line, openpattern) or string.match(current_line, closedpattern) then print("shift tab pressed, allegedly") - vim.api.nvim_feedkeys(vim.api.nvim_eval('"\\"'), "n", true) - vim.api.nvim_feedkeys("<", "n", true) - vim.api.nvim_feedkeys("<", "n", true) - vim.api.nvim_feedkeys("A", "n", true) + vim.api.nvim_feedkeys("C-d", "i", true) end end vim.keymap.set("i", "S-Tab", press_shift_tab, { desc = "On shift tab", noremap = true, expr = true })