Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/aarondiel/spread.nvim
- Owner: aarondiel
- Created: 2022-07-19T18:37:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-27T10:17:40.000Z (about 2 years ago)
- Last Synced: 2024-05-05T15:33:15.308Z (6 months ago)
- Topics: formatter, formatting, neovim, nvim, plugin, vim
- Language: Lua
- Homepage:
- Size: 365 KB
- Stars: 99
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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