From a9edb662ced035e42cc87915de7244f8d95f8d75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Fri, 1 Dec 2023 00:45:31 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(nvim):=20use=20op?= =?UTF-8?q?ts=20instead=20of=20config=20function=20with=20better-escape=20?= =?UTF-8?q?extra?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nvim/lua/plugins/extras/util/better-escape.lua | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.config/nvim/lua/plugins/extras/util/better-escape.lua b/.config/nvim/lua/plugins/extras/util/better-escape.lua index 81e79ebd..a72749e3 100644 --- a/.config/nvim/lua/plugins/extras/util/better-escape.lua +++ b/.config/nvim/lua/plugins/extras/util/better-escape.lua @@ -1,15 +1,5 @@ return { "max397574/better-escape.nvim", - config = function() - require("better_escape").setup({ - mapping = { "jk", "jj", "kj", "jl" }, -- a table with mappings to use - timeout = vim.o.timeoutlen, -- the time in which the keys must be hit in ms. Use option timeoutlen by default - clear_empty_lines = false, -- clear line after escaping if there is only whitespace - keys = "", -- keys used for escaping, if it is a function will use the result everytime - -- example(recommended) - -- keys = function() - -- return vim.api.nvim_win_get_cursor(0)[2] > 1 and 'l' or '' - -- end, - }) - end, + opts = {}, + event = "InsertEnter", }