local map = require 'std.map' map.normal { description = 'Toggle Tree Join/Split', category = 'editing', -- WARN: produces the same key code as on some terminals keys = '', command = function () require 'treesj'.toggle() end, } return { 'Wansmer/treesj', dependencies = { 'nvim-treesitter/nvim-treesitter', }, opts = { use_default_keymaps = false, ---@type number If line after join will be longer than max value, node will not be formatted max_join_length = vim.opt.textwidth:get(), }, }