My Neovim Plugins #12 — TreeSJ

A helper I don't want to miss is, treesj. Simply split or join blocks in Neovim. For example, if-conditions to shorthand ifs or objects. Sometime is it is annoying when you have one-liner code which you will extend, and have to split first by hand. Usually, the Formatter solves this on file save. But every so often you want it to do it by yourself.

Config

return {
	"Wansmer/treesj",
	keys = {
		{ "<leader>j", ":TSJToggle<cr>", desc = "TreeSJ" },
	},
	dependencies = { "nvim-treesitter/nvim-treesitter" },
	opts = {
		use_default_keymaps = false,
	},
}

86 of #100DaysToOffload
#log #neovim
Thoughts? Discuss...