From c1a09a7a3d884c7ba7785ff4fca9a90e6c731442 Mon Sep 17 00:00:00 2001 From: jank Date: Mon, 28 Jul 2025 19:43:04 +0200 Subject: [PATCH] fix: Load user config --- lua/jquote/init.lua | 8 ++++++++ plugin/jquote.lua | 14 -------------- 2 files changed, 8 insertions(+), 14 deletions(-) delete mode 100644 plugin/jquote.lua diff --git a/lua/jquote/init.lua b/lua/jquote/init.lua index e505737..16f359c 100644 --- a/lua/jquote/init.lua +++ b/lua/jquote/init.lua @@ -13,6 +13,14 @@ function M.setup(user_options) M.options[k] = v end end + + local map_opts = { + desc = "Swaps the quotes around", + silent = true, + noremap = true, + } + + vim.keymap.set("n", M.options.hotkey, M.toggle_quotes, map_opts) end --- Checks if a given character is one of the predefined quote characters. diff --git a/plugin/jquote.lua b/plugin/jquote.lua deleted file mode 100644 index 2d8bed0..0000000 --- a/plugin/jquote.lua +++ /dev/null @@ -1,14 +0,0 @@ -if vim.g.jquote_loaded then - return -end -vim.g.jquote_loaded = true - -local jquote = require("jquote") - -local map_opts = { - desc = "Swaps the quotes around", - silent = true, - noremap = true, -} - -vim.keymap.set("n", jquote.options.hotkey, jquote.toggle_quotes, map_opts)