RRethy / vim-illuminate

illuminate.vim - (Neo)Vim plugin for automatically highlighting other uses of the word under the cursor using either LSP, Tree-sitter, or regex matching.
2.18k stars 50 forks source link

Allow disabling textobject creation or make keybind configurable #202

Closed savchenko closed 3 months ago

savchenko commented 3 months ago

Describe the bug <a-i> gets unconditionally overwritten by the plugin.

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

  1. Install vim-illuminate
  2. Execute usual vai
  3. Wonder why it is broken

Output from :IlluminateDebug

buf_should_illuminate 2 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" },                                                                                                                                                                               
  providers_regex_syntax_allowlist = {},                                                                                                                                                                             
  providers_regex_syntax_denylist = {},                                                                                                                                                                              
  under_cursor = false                                                                                                                                                                                               
}                                                                                                                                                                                                                    
started true                                                                                                                                                                                                         
provider table: 0x728dfbb4efa8 lsp                                                                                                                                                                                   
`termguicolors` true

Expected behavior Existing maps / textobjects are not overwritten.

Screenshots N/A

Additional context nVim v0.10.0, vim-illuminate https://github.com/RRethy/vim-illuminate/commit/5eeb7951fc630682c322e88a9bbdae5c224ff0aa

RRethy commented 3 months ago

Closing due to a lack of minimal init.lua. From the issue template:

Note Omitting a minimal init.vim/init.lua/.vimrc will likely result in the issue being closed without explanation.

https://github.com/RRethy/vim-illuminate/blob/master/.github/ISSUE_TEMPLATE/bug_report.md?plain=1#L17C1-L17C125