mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 17:40:06 +08:00
.. | ||
lua | ||
plugin | ||
README.md |
format.nvim
format.nvim is an asynchronous code formatting plugin based on SpaceVim job api.
Install
- Using
format.nvim
in SpaceVim:
[[layers]]
name = 'format'
format_method = 'format.nvim'
- Using
format.nvim
without SpaceVim:
Plug 'wsdjeg/format.nvim'
Configuration
require('format').setup({
custom_formatters = {
lua = {
exe = 'stylua',
args = { '-' },
stdin = true,
},
},
})
Usage
:Format
: format current buffer
Feedback
The development of this plugin is in SpaceVim/bundle/format.nvim
directory.
If you encounter any bugs or have suggestions, please file an issue in the issue tracker