Skip to content

Commit

Permalink
fix(illuminate): delete ]] and [[ keymaps set by ftplugins. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 25, 2023
1 parent 94267fe commit 5a4cb1b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lua/lazyvim/plugins/editor.lua
Expand Up @@ -217,6 +217,13 @@ return {
opts = { delay = 200 },
config = function(_, 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,
-- stylua: ignore
keys = {
Expand Down

0 comments on commit 5a4cb1b

Please sign in to comment.