Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aarondiel/spread.nvim

a neovim plugin to spread out inline objects, arrays, parameter lists, etc.
https://github.com/aarondiel/spread.nvim

formatter formatting neovim nvim plugin vim

Last synced: 3 months ago
JSON representation

a neovim plugin to spread out inline objects, arrays, parameter lists, etc.

Awesome Lists containing this project

README

        

spread.nvim


a plugin to refactor and spread out objects, arrays, parameter lists, etc
onto multiple lines.


this plugin is still work in progress, so don't expect it to work
with every language and container.

## installation

> this plugin uses [treesitter][nvim-treesitter] so be sure to also install it

using [packer][packer]:

```lua
use({
"aarondiel/spread.nvim",
after = "nvim-treesitter",
config = function()
local spread = require("spread")
local default_options = {
silent = true,
noremap = true
}

vim.keymap.add("n", "ss", spread.out, default_options)
vim.keymap.add("n", "ssc", spread.combine, default_options)
end
})
```

[nvim-treesitter]: https://github.com/nvim-treesitter/nvim-treesitter
[packer]: https://github.com/wbthomason/packer.nvim