From 7c50a16fd8f1cc224600e7ce1fa8874456e38bbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czy=C5=BC?= Date: Tue, 31 Dec 2024 12:46:58 +0100 Subject: [PATCH] feat: format on save --- lua/configs/conform.lua | 10 +++++----- lua/plugins/init.lua | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lua/configs/conform.lua b/lua/configs/conform.lua index 35ba6cf..4459375 100644 --- a/lua/configs/conform.lua +++ b/lua/configs/conform.lua @@ -5,11 +5,11 @@ local options = { -- html = { "prettier" }, }, - -- format_on_save = { - -- -- These options will be passed to conform.format() - -- timeout_ms = 500, - -- lsp_fallback = true, - -- }, + format_on_save = { + -- These options will be passed to conform.format() + timeout_ms = 500, + lsp_fallback = true, + }, } return options diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 6474776..c925c27 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -1,7 +1,7 @@ return { { "stevearc/conform.nvim", - -- event = 'BufWritePre', -- uncomment for format on save + event = "BufWritePre", -- uncomment for format on save opts = require "configs.conform", },