Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/walterl/centerfold
Neovim plugin to center the last visual selection.
https://github.com/walterl/centerfold
aniseed fennel neovim neovim-plugin
Last synced: 2 days ago
JSON representation
Neovim plugin to center the last visual selection.
- Host: GitHub
- URL: https://github.com/walterl/centerfold
- Owner: walterl
- License: mit
- Created: 2020-10-10T21:40:48.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-13T22:02:11.000Z (over 1 year ago)
- Last Synced: 2024-08-03T13:06:13.043Z (4 months ago)
- Topics: aniseed, fennel, neovim, neovim-plugin
- Language: Lua
- Homepage:
- Size: 108 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# CenterFold
This [Neovim](https://neovim.io/) plugin adds the `:CenterFold` command that
will center the last visual selection, opening all folds under the cursor,
recursively.## Installation
I recommend installing it with [vim-plug](https://github.com/junegunn/vim-plug):
```vim
Plug 'walterl/centerfold'
```## Usage
This is useful to quickly select and center a block of code. For example, the
following mapping will center the top-level Clojure form the cursor is in
(requires [vim-sexp](https://github.com/guns/vim-sexp)):```vim
nmap jj vaF:CenterFold
```## Background
This is my first Neovim plugin written in [Fennel](https://fennel-lang.org/), using [Aniseed](https://github.com/Olical/aniseed).
## License
[MIT](./LICENSE.md)