Skip to content

bug: disable_keymaps not working in Neovim #243

@juanMarinero

Description

@juanMarinero

Description

Following README#configuration I set in NVIM v0.11.1 next:

require('illuminate').configure({
    delay = 5000,
    under_cursor = true,
    case_insensitive_regex = false,
    disable_keymaps = true
})
  • The delay and under_cursor settings do yes work. It takes 5 secs to underline matches.
  • But the maps Alt+P and Alt+N to jump to prev./next match (:h illuminate-quickstart) are still valid. Another proof is that :Maps of fzf.vim still shows them:

Image

I tried setting disable_keymaps = false, just in case the logic was the opposite, but still the maps are valid.

Output from :IlluminateDebug

buf_should_illuminate 1 true
config {
  case_insensitive_regex = false,
  delay = 5000,
  disable_keymaps = true,
  filetype_overrides = {},
  filetypes_allowlist = {},
  filetypes_denylist = { "dirbuf", "dirvish", "fugitive" },
  large_file_cutoff = 10000,
  min_count_to_highlight = 1,
  modes_allowlist = {},
  modes_denylist = {},
  providers = { "lsp", "treesitter", "regex" },
  providers_regex_syntax_allowlist = {},
  providers_regex_syntax_denylist = {},
  under_cursor = true
}
started true
provider table: 0x7fe840d59ad0 regex
`termguicolors` true

Topic related: A

It's not specified in README#vim-users how to disable/enable the default mappings in Vim. Though I think they are by default disabled. Maybe alike next?

lua << EOF
require('illuminate').configure({ disable_keymaps = true })
EOF

Topic related: B

:IlluminateDebug not work in Vim 9.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions