nvim/lua/plugins/treesj.lua

14 lines
445 B
Lua
Raw Normal View History

2024-08-02 07:11:41 +00:00
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" },
2024-08-22 07:06:49 +00:00
{ "<space>ts", "<cmd>TSJSplit<cr>", desc = "Treesitter Split" },
2024-08-02 07:11:41 +00:00
},
config = function()
require("treesj").setup({ use_default_keymaps = false })
end,
}