diff options
Diffstat (limited to '.config/nvim/lua/plugins/conform.lua')
| -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 | }, |
