Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to disable default keymaps #217

Open
TheSast opened this issue Nov 8, 2024 · 0 comments
Open

Option to disable default keymaps #217

TheSast opened this issue Nov 8, 2024 · 0 comments

Comments

@TheSast
Copy link

TheSast commented Nov 8, 2024

Describe the bug
<a-i> gets conditionally mapped by the plugin, without an option to prevent it.

To Reproduce
Steps to reproduce the behavior (include minimal init.vim or .vimrc):

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
	vim.fn.system { "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath }
	vim.fn.system { "git", "--git-dir=" .. lazypath, "--work-tree=" .. lazypath, "checkout", "077102c" }
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
require("lazy").setup {
	"RRethy/vim-illuminate",
	version = "5eeb795",
	config = function(_, opts) require("illuminate").configure(opts) end,
	init = function() vim.cmd.highlight "IlluminatedWordText ctermbg=14 guibg=Cyan gui=underline" end
}

Output from :IlluminateDebug

buf_should_illuminate 1 true
config {
  case_insensitive_regex = false,
  delay = 100,
  filetype_overrides = {},
  filetypes_allowlist = {},
  filetypes_denylist = { "dirbuf", "dirvish", "fugitive" },
  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: 0x7f77e5e17618 regex
`termguicolors` false

Expected behavior
Bool option to enable the default mappings, which when set to nil (default) would use the current plugin behavior of only setting them if the keys are not already mapped.

Screenshots
N/A

Additional context
This is similar to #202

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant