From bcc1335c3e9c16a5c13ab73c34d840ae811272f0 Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Wed, 12 Jul 2023 21:21:27 +0300 Subject: [PATCH] add escape.nvim --- init.lua | 2 ++ lua/config/escape.lua | 10 ++++++++++ lua/plugins.lua | 1 + 3 files changed, 13 insertions(+) create mode 100644 lua/config/escape.lua diff --git a/init.lua b/init.lua index 92deaba..9ea110d 100644 --- a/init.lua +++ b/init.lua @@ -1,5 +1,7 @@ local cmd = vim.cmd +table.unpack = unpack + -- Allow loading */init.lua files package.path = "./?/init.lua;"..package.path diff --git a/lua/config/escape.lua b/lua/config/escape.lua new file mode 100644 index 0000000..23bb2cb --- /dev/null +++ b/lua/config/escape.lua @@ -0,0 +1,10 @@ +return { + "m-gail/escape.nvim", + config = function() + local escape = require("escape").escape + + require("legendary").keymaps{ + {"e", escape, description="Escape quotes", mode={"v"}, opts={noremap=true,silent = true}} + } + end +} diff --git a/lua/plugins.lua b/lua/plugins.lua index 8df7532..a60c4de 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -34,6 +34,7 @@ return function(use) use_config "git-conflict" use_config "doxygen-tk" use_config "navbuddy" + use_config "escape" -- use_config "ufo" use {