split treej

main
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 { return {
"mrcjkb/rustaceanvim", "mrcjkb/rustaceanvim",
lazy = false,
opts = { opts = {
server = { server = {
default_settings = { default_settings = {
@ -7,8 +8,15 @@ return {
["rust-analyzer"] = { ["rust-analyzer"] = {
cargo = { cargo = {
targetDir = true, targetDir = true,
buildScripts = {
enable = false,
}, },
}, },
checkOnSave = true,
-- check = {
-- command = "clippy",
-- },
},
}, },
}, },
}, },

View File

@ -5,7 +5,7 @@ return {
keys = { keys = {
{ "J", "<cmd>TSJToggle<cr>", desc = "Toggle Treesitter Join" }, { "J", "<cmd>TSJToggle<cr>", desc = "Toggle Treesitter Join" },
{ "<space>tj", "<cmd>TSJJoin<cr>", desc = "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() config = function()
require("treesj").setup({ use_default_keymaps = false }) require("treesj").setup({ use_default_keymaps = false })