Neovim plugin for aligning bilingual parallel texts
// readme
interlaced.nvim
Text re-positioning for bilingual sentence alignment.
Requirements
- Neovim >= 0.12.0
Installation
- Using lazy.nvim
{
"tanloong/interlaced.nvim",
config = function() require("interlaced") end,
ft = "text",
}
Configuration
Use vim.g.interlaced option table and modifiy the field what you need before the plugin is loaded.
vim.g.interlaced = {
keymaps = {
{ "n", ",", "push_up"},
{ "n", "<", "push_up_pair"},
{ "n", "e", "push_up_left_part"},
{ "n", ".", "pull_below"},
{ "n", ">", "pull_below_pair"},
{ "n", "d", "push_down_right_part"},
{ "n", "D", "push_down"},
{ "n", "s", "leave_alone"},
{ "n", "[e", "swap_with_above"},
{ "n", "]e", "swap_with_below"},
{ "n", "U", "undo"},
{ "n", "R", "redo"},
{ "n", "J", "navigate_down"},
{ "n", "K", "navigate_up"},
{ "n", "md", "dump"},
{ "n", "ml", "load"},
{ "n", "gn", "next_unaligned"},
{ "n", "gN", "prev_unaligned"},
{ "n", "mt", "match_toggle"},
{ "n", "m;", "list_matches"},
{ "n", "ma", "match_add"},
{ "v", "ma", "match_add_visual"},
},
-- sentence…