fix(illuminate): delete ]] and [[ keymaps set by ftplugins. Fixes #124
This commit is contained in:
1 file changed
+7
@@ -217,6 +217,13 @@ return {
|
|||||||
opts = { delay = 200 },
|
opts = { delay = 200 },
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
require("illuminate").configure(opts)
|
require("illuminate").configure(opts)
|
||||||
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
|
callback = function()
|
||||||
|
local buffer = vim.api.nvim_get_current_buf()
|
||||||
|
pcall(vim.keymap.del, "n", "]]", { buffer = buffer })
|
||||||
|
pcall(vim.keymap.del, "n", "[[", { buffer = buffer })
|
||||||
|
end,
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
-- stylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
|
|||||||
Reference in new issue
Block a user