Using lazy.nvim
You can either add this to lua/plugin/init.lua
{'benjamin-voisin/cehavl',
opts = {
default_keymaps = true
},
}
Or this to the file lua/plugin/cehavl.lua
return {
'benjamin-voisin/cehavl',
opts = {
default_keymaps = true
},
}
Other or no plugin manager
Install the plugin to your running path the way you like it. You then need to run the setup function :
require('cehavl').setup({
default_keymaps = true
})
Currently, only default setup is supported.
Function | Action | Default Mapping |
---|---|---|
:Cehavl |
Cehavl the word under the cursor | <leader>ch |
:CehavlAll |
Cehavl all the occurrences of the word under the cursor, according to the LSP : local variables will be changed at the correct locallity, any code should run as well as before the function. | <leader>cha |
- Possibility to cehavl a whole file, with reversability (:CehavlFile and :ChevalFile functions)
- Possibility to choose keymaps in the setup function.