]> Arthur Taft Gitweb - nvim.git/blob - lua/config/autocmds.lua
Initial commit
[nvim.git] / lua / config / autocmds.lua
1 -- Format on save (sync, safe fallback to LSP)
2 vim.api.nvim_create_autocmd("BufWritePre", {
3   callback = function(args)
4     require("conform").format({ bufnr = args.buf, async = false, lsp_fallback = true })
5   end,
6 })