Skip to content
This repository was archived by the owner on Feb 20, 2025. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

format.nvim

format.nvim is an asynchronous code formatting plugin based on SpaceVim job api.

GPLv3 License

Install

  1. Using format.nvim in SpaceVim:
[[layers]]
  name = 'format'
  format_method = 'format.nvim'
  1. 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