This plugin joins lines that belong to the same paragraph into one line.
It has been tested with Neovim version 0.9.4.
Bug reports and improvements are very welcome!
Select the lines you want to join and run the user command Join
.
The difference between this plugin and the internal join
command is that
this tool does not merge lines belonging to different paragraphs.
Add the following to the list of your plugins:
{
'jakeru/join.nvim',
config = true,
submodules = false,
},
If you want to invoke the tool using a combination of keys, add something like this to your configuration:
vim.keymap.set("v", "<Leader>J", require('join').join, { desc = "Join selected lines" })