mirror of
https://github.com/anotherhadi/sttr.nvim.git
synced 2026-10-05 16:58:24 +02:00
15 lines
414 B
Lua
15 lines
414 B
Lua
local M = {}
|
|
|
|
function M.setup()
|
|
vim.api.nvim_create_user_command("SttrTransform", function()
|
|
require("sttr.transform").run()
|
|
end, { desc = "sttr: transform visual selection" })
|
|
|
|
vim.api.nvim_create_user_command("SttrClearCache", function()
|
|
require("sttr.transform").clear_cache()
|
|
vim.notify("[sttr] cache cleared", vim.log.levels.INFO)
|
|
end, { desc = "sttr: clear transformations cache" })
|
|
end
|
|
|
|
return M
|