mirror of
https://github.com/chenasraf/text-transform.nvim.git
synced 2026-05-18 01:48:57 +00:00
feat: add CONST_CASE
This commit is contained in:
@@ -45,6 +45,9 @@ function TextTransform.setup(options)
|
||||
vim.cmd(
|
||||
"amenu TransformsSelection.&Title\\ Case :lua TextTransform.replace_selection(TextTransform.title_case)<CR>"
|
||||
)
|
||||
vim.cmd(
|
||||
"amenu TransformsSelection.C&ONST_CASE\\ Case :lua TextTransform.replace_selection(TextTransform.const_case)<CR>"
|
||||
)
|
||||
|
||||
-- use input from current word in editor
|
||||
vim.cmd(
|
||||
@@ -65,6 +68,9 @@ function TextTransform.setup(options)
|
||||
vim.cmd(
|
||||
"amenu TransformsWord.&Title\\ Case :lua TextTransform.replace_word(TextTransform.title_case)<CR>"
|
||||
)
|
||||
vim.cmd(
|
||||
"amenu TransformsWord.C&ONST_CASE\\ Case :lua TextTransform.replace_word(TextTransform.const_case)<CR>"
|
||||
)
|
||||
|
||||
vim.keymap.set(
|
||||
"n",
|
||||
|
||||
Reference in New Issue
Block a user