split treej

This commit is contained in:
Zynh Ludwig 2024-08-22 00:06:49 -07:00
parent cd44c18646
commit b34963906f
2 changed files with 9 additions and 1 deletions

View file

@ -1,5 +1,6 @@
return {
"mrcjkb/rustaceanvim",
lazy = false,
opts = {
server = {
default_settings = {
@ -7,7 +8,14 @@ return {
["rust-analyzer"] = {
cargo = {
targetDir = true,
buildScripts = {
enable = false,
},
},
checkOnSave = true,
-- check = {
-- command = "clippy",
-- },
},
},
},

View file

@ -5,7 +5,7 @@ return {
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" },
{ "<space>ts", "<cmd>TSJSplit<cr>", desc = "Treesitter Split" },
},
config = function()
require("treesj").setup({ use_default_keymaps = false })