feat: allow sorter selection in config

This commit is contained in:
2024-05-04 11:20:19 +03:00
committed by Chen Asraf
parent 733f26fef6
commit 6863e0e9a6
5 changed files with 47 additions and 22 deletions

View File

@@ -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()