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

@@ -138,10 +138,14 @@ end
--- This allows to treat all ranges equally and allows to work on each selection without knowing
--- the full information around the selection logic.
function TextTransform.get_visual_selection_details()
if not state.positions then
D.log("replacers", "No positions saved")
return {}
end
D.log(
"replacers",
"Getting visual selection details - mode: %s, is_visual: %s, is_block: %s",
vim.inspect(state.positions),
state.positions.mode,
utils.is_visual_mode(),
utils.is_block_visual_mode()
)