mirror of
https://github.com/anotherhadi/sttr.nvim.git
synced 2026-10-05 16:58:24 +02:00
init
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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
|
||||
Reference in New Issue
Block a user