treesj being cool and awesome
This commit is contained in:
parent
f66bc2c5ab
commit
d7ca1f2cc2
1 changed files with 8 additions and 1 deletions
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue