Skip to content

Neovim plugin to convert gaps in selected text into a sequence of horizontal ellipsis.

License

Notifications You must be signed in to change notification settings

rseichter/ellipsis.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ellipsis.nvim

Neovim plugin to convert gaps in text into a sequence of horizontal ellipsis. Any sequence of three or more consecutive spaces between non-space characters is considered a gap. For example, the plugin converts this:

foo        foo
bar        bar
quux       quux

into this:

foo ……………… foo
bar ……………… bar
quux …………… quux

Note that this plugin is designed for Neovim's visual line mode only, and will modify complete lines.

Installation

Lazy plugin manager

When using lazy.nvim, the following snippet suffices:

{
  'rseichter/ellipsis.nvim',
  opts = { bindto = '<leader>ell' },
}

There is no default value for bindto. The bound LUA function is Ellipsis.convert().

Manual installation

The procedure for manual plugin installation is described in the Neovim documentation. Use the command :help packages to access it.

Usage

Select lines in Neovim visual mode, then use your defined key binding.

License

Copyright © 2024 Ralph Seichter.

ellipsis.nvim is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

ellipsis.nvim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

About

Neovim plugin to convert gaps in selected text into a sequence of horizontal ellipsis.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages