format.nvim is an asynchronous code formatting plugin based on SpaceVim job api.
- Using
format.nvimin SpaceVim:
[[layers]]
name = 'format'
format_method = 'format.nvim'- Using
format.nvimwithout SpaceVim:
Plug 'wsdjeg/format.nvim'
require('format').setup({
custom_formatters = {
lua = {
exe = 'stylua',
args = { '-' },
stdin = true,
},
},
}):Format: format current buffer
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