diff options
| author | Yigit Sever | 2025-10-17 12:47:57 +0300 |
|---|---|---|
| committer | Yigit Sever | 2025-10-17 12:47:57 +0300 |
| commit | 6edcdc57e0cdee04ced99e716ca64ece0c53b6f9 (patch) | |
| tree | f4f9984f92828da1eb7f5fdadc4fc0031f78eae6 | |
| parent | 0b256ce88981c78a30c1dd20b4462d2f6cc26625 (diff) | |
| download | dotfiles-6edcdc57e0cdee04ced99e716ca64ece0c53b6f9.tar.gz dotfiles-6edcdc57e0cdee04ced99e716ca64ece0c53b6f9.tar.bz2 dotfiles-6edcdc57e0cdee04ced99e716ca64ece0c53b6f9.zip | |
nvim: update conform
| -rw-r--r-- | .config/nvim/lua/plugins/conform.lua | 8 |
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 | }, |
