fix: Load user config

This commit is contained in:
Jan K9f 2025-07-28 19:43:04 +02:00
commit c1a09a7a3d
Signed by: jank
GPG key ID: 22BEAC760B3333D6
2 changed files with 8 additions and 14 deletions

View file

@ -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.

View file

@ -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)