summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorYigit Sever2025-10-17 12:47:57 +0300
committerYigit Sever2025-10-17 12:47:57 +0300
commit6edcdc57e0cdee04ced99e716ca64ece0c53b6f9 (patch)
treef4f9984f92828da1eb7f5fdadc4fc0031f78eae6 /.config
parent0b256ce88981c78a30c1dd20b4462d2f6cc26625 (diff)
downloaddotfiles-6edcdc57e0cdee04ced99e716ca64ece0c53b6f9.tar.gz
dotfiles-6edcdc57e0cdee04ced99e716ca64ece0c53b6f9.tar.bz2
dotfiles-6edcdc57e0cdee04ced99e716ca64ece0c53b6f9.zip
nvim: update conform
Diffstat (limited to '.config')
-rw-r--r--.config/nvim/lua/plugins/conform.lua8
1 files changed, 7 insertions, 1 deletions
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 {
2 { 2 {
3 'stevearc/conform.nvim', 3 'stevearc/conform.nvim',
4 opts = { 4 opts = {
5 format_on_save = {
6 -- These options will be passed to conform.format()
7 timeout_ms = 500,
8 lsp_format = "fallback",
9 },
5 formatters_by_ft = { 10 formatters_by_ft = {
6 lua = { "stylua" }, 11 lua = { "stylua" },
7 -- Conform will run multiple formatters sequentially 12 -- Conform will run multiple formatters sequentially
8 python = { "isort", "black" },
9 -- You can customize some of the format options for the filetype (:help conform.format) 13 -- You can customize some of the format options for the filetype (:help conform.format)
10 rust = { "rustfmt", lsp_format = "fallback" }, 14 rust = { "rustfmt", lsp_format = "fallback" },
11 -- Conform will run the first available formatter 15 -- Conform will run the first available formatter
12 javascript = { "prettierd", "prettier", stop_after_first = true }, 16 javascript = { "prettierd", "prettier", stop_after_first = true },
13 -- latex 17 -- latex
14 tex = { "tex-fmt" }, 18 tex = { "tex-fmt" },
19 -- sql
20 sql = { "sqruff" },
15 }, 21 },
16 } 22 }
17 }, 23 },