fix: Load user config
This commit is contained in:
parent
9a9a8dfe0a
commit
c1a09a7a3d
2 changed files with 8 additions and 14 deletions
|
@ -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.
|
||||
|
|
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue