/shfmt.nvim

shfmt plugin for nvim.

Primary LanguageLuaMIT LicenseMIT

shfmt.nvim

shfmt plugin for nvim.

Installation

  • Neovim >= 0.7.0
  • shfmt
use "yuchanns/shfmt.nvim"

Usage

Configuration

require("shfmt").setup({
  -- Default configs
  cmd = "shfmt",
  args = { "-l", "-w" },
  auto_format = false,
})

Manual Format

-- using lua function
: lua require("shfmt").formatting()

Contributing

Bug reports and feature requests are welcome! Feel free to make PRs!