mirror of
https://github.com/chenasraf/text-transform.nvim.git
synced 2026-05-18 01:48:57 +00:00
feat: allow sorter selection in config
This commit is contained in:
@@ -9,16 +9,16 @@ local TextTransform = {}
|
||||
--- Default values:
|
||||
---@eval return MiniDoc.afterlines_to_code(MiniDoc.current.eval_section)
|
||||
TextTransform.options = {
|
||||
-- Prints information about internals of the plugin. Very verbose, only useful for debugging.
|
||||
--- Prints information about internals of the plugin. Very verbose, only useful for debugging.
|
||||
debug = false,
|
||||
-- Keymap configurations
|
||||
--- Keymap configurations
|
||||
keymap = {
|
||||
-- Keymap to open the telescope popup. Set to `false` or `nil` to disable keymapping
|
||||
-- You can always customize your own keymapping manually.
|
||||
--- Keymap to open the telescope popup. Set to `false` or `nil` to disable keymapping
|
||||
--- You can always customize your own keymapping manually.
|
||||
telescope_popup = {
|
||||
-- Opens the popup in normal mode
|
||||
--- Opens the popup in normal mode
|
||||
["n"] = "<Leader>~",
|
||||
-- Opens the popup in visual/visual block modes
|
||||
--- Opens the popup in visual/visual block modes
|
||||
["v"] = "<Leader>~",
|
||||
},
|
||||
},
|
||||
@@ -36,6 +36,10 @@ TextTransform.options = {
|
||||
snake_case = { enabled = true },
|
||||
title_case = { enabled = true },
|
||||
},
|
||||
|
||||
--- Sort the replacers in the popup.
|
||||
--- Possible values: 'frequency', 'name'
|
||||
sort_by = "frequency",
|
||||
}
|
||||
|
||||
local function init()
|
||||
|
||||
Reference in New Issue
Block a user