repositories / dotfiles
dotfiles
bugabingas dorkfiles
owned by bugabinga
neovim/lua/bugabinga/plugins/treesj.lua
Rawlocal map = require 'std.map'
map.normal {
description = 'Toggle Tree Join/Split',
category = 'editing',
-- WARN: <C-j> produces the same key code as <C-enter> on some terminals
keys = '<C-j>',
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(),
},
}