treesj being cool and awesome

This commit is contained in:
Zynh Ludwig 2024-09-18 19:16:16 -07:00
parent f66bc2c5ab
commit d7ca1f2cc2

View file

@ -8,6 +8,13 @@ return {
{ "<space>ts", "<cmd>TSJSplit<cr>", desc = "Treesitter Split" }, { "<space>ts", "<cmd>TSJSplit<cr>", desc = "Treesitter Split" },
}, },
config = function() config = function()
require("treesj").setup({ use_default_keymaps = false }) require("treesj").setup({
use_default_keymaps = false,
on_error = function(err_text, level)
if not err_text:find("splitted") then
vim.cmd.join()
end
end,
})
end, end,
} }