Skip to content

How to disable / change default keybinding? #182

@fingust

Description

@fingust

I have another keybind on ga and this plugin seems to automatically register a bunch of keybindings with ga prefix. I don't want that because it interferes with my current setup. This issue: #45 mentions that you shouldn't call the setup function, because that is what sets up the keybindings and that if you want custom you should simply not call it because the plugin registers itself without the need to call the setup function. But that doesn't seem to be true, because, while not calling it indeed fixes the keybindings interference, it also breaks the TextCaseOpenTelescope command and I get the following error when trying to execute it:

Error executing lua vim/_editor.lua:0: nvim_exec2(): Vim:Error executing Lua callback: ...zy/text-case.nvim/lua/telescope/_extensions/textcase.lua:48: attempt to index field 'enabled_methods_set' (a nil value)
stack traceback:
	...zy/text-case.nvim/lua/telescope/_extensions/textcase.lua:48: in function 'Create_resulting_cases'
	...zy/text-case.nvim/lua/telescope/_extensions/textcase.lua:118: in function <...zy/text-case.nvim/lua/telescope/_extensions/textcase.lua:116>
	...share/nvim/lazy/telescope.nvim/lua/telescope/command.lua:183: in function 'run_command'
	...share/nvim/lazy/telescope.nvim/lua/telescope/command.lua:259: in function 'load_command'
	...ocal/share/nvim/lazy/telescope.nvim/plugin/telescope.lua:108: in function <...ocal/share/nvim/lazy/telescope.nvim/plugin/telescope.lua:107>
	[C]: in function 'nvim_exec2'
	vim/_editor.lua: in function 'cmd'
	.../nvim/lazy/text-case.nvim/lua/strings/repeat/methods.lua:246: in function 'open_telescope'
	[string ":lua"]:1: in main chunk
stack traceback:
	[C]: in function 'nvim_exec2'
	vim/_editor.lua: in function 'cmd'
	.../nvim/lazy/text-case.nvim/lua/strings/repeat/methods.lua:246: in function 'open_telescope'
	[string ":lua"]:1: in main chunk

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