This commit is contained in:
Zynh Ludwig 2024-08-02 00:11:41 -07:00
parent c2b9070562
commit 4ad4299d48

13
lua/plugins/treesj.lua Normal file
View file

@ -0,0 +1,13 @@
return {
"Wansmer/treesj",
dependencies = { "nvim-treesitter/nvim-treesitter" },
cmd = { "TSJToggle", "TSJJoin", "TSJSplit" },
keys = {
{ "J", "<cmd>TSJToggle<cr>", desc = "Toggle Treesitter Join" },
{ "<space>tj", "<cmd>TSJJoin<cr>", desc = "Treesitter Join" },
{ "<space>ts", "<cmd>TSJToggle<cr>", desc = "Treesitter Split" },
},
config = function()
require("treesj").setup({ use_default_keymaps = false })
end,
}