Skip to content

benjamin-voisin/cehavl.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cehavl.nvim

Installation

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.

Functions and default mappings

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

TODO

  • Possibility to cehavl a whole file, with reversability (:CehavlFile and :ChevalFile functions)
  • Possibility to choose keymaps in the setup function.

About

A neovim plugin for cehavling words

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages