From 6edcdc57e0cdee04ced99e716ca64ece0c53b6f9 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 17 Oct 2025 12:47:57 +0300 Subject: nvim: update conform --- .config/nvim/lua/plugins/conform.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/plugins/conform.lua b/.config/nvim/lua/plugins/conform.lua index 9f15bbb..06231dc 100644 --- a/.config/nvim/lua/plugins/conform.lua +++ b/.config/nvim/lua/plugins/conform.lua @@ -2,16 +2,22 @@ return { { 'stevearc/conform.nvim', opts = { + format_on_save = { + -- These options will be passed to conform.format() + timeout_ms = 500, + lsp_format = "fallback", + }, formatters_by_ft = { lua = { "stylua" }, -- Conform will run multiple formatters sequentially - python = { "isort", "black" }, -- You can customize some of the format options for the filetype (:help conform.format) rust = { "rustfmt", lsp_format = "fallback" }, -- Conform will run the first available formatter javascript = { "prettierd", "prettier", stop_after_first = true }, -- latex tex = { "tex-fmt" }, + -- sql + sql = { "sqruff" }, }, } }, -- cgit v1.2.3-70-g09d2