Flexible LSP format on save.
vim.pack (requires neovim nightly)
vim.pack.add({ "https://github.com/TungstnBallon/formatlsp.nvim" })
-- If you put this line in your `plugin/` directory, you need to add `load = true`
vim.pack.add({ "https://github.com/TungstnBallon/formatlsp.nvim" }, { load = true })lazy.nvim
{
"https://github.com/TungstnBallon/formatlsp.nvim",
lazy = false, -- Don't worry, the plugin is lazy loaded internally
}See :help formatlsp-setup
See :help formatlsp-config
See :help formatlsp-examples