feat: format on save

This commit is contained in:
2024-12-31 12:46:58 +01:00
parent 78fa68bde1
commit 7c50a16fd8
2 changed files with 6 additions and 6 deletions

View File

@@ -5,11 +5,11 @@ local options = {
-- html = { "prettier" }, -- html = { "prettier" },
}, },
-- format_on_save = { format_on_save = {
-- -- These options will be passed to conform.format() -- These options will be passed to conform.format()
-- timeout_ms = 500, timeout_ms = 500,
-- lsp_fallback = true, lsp_fallback = true,
-- }, },
} }
return options return options

View File

@@ -1,7 +1,7 @@
return { return {
{ {
"stevearc/conform.nvim", "stevearc/conform.nvim",
-- event = 'BufWritePre', -- uncomment for format on save event = "BufWritePre", -- uncomment for format on save
opts = require "configs.conform", opts = require "configs.conform",
}, },