diff options
author | Steven Arcangeli <stevearc@stevearc.com> | 2024-07-13 13:29:30 -0700 |
---|---|---|
committer | Steven Arcangeli <stevearc@stevearc.com> | 2024-07-19 08:41:31 -0700 |
commit | 3a0e9b44076514ffba6c81ca28685107928b55f7 (patch) | |
tree | f96d8046822dae0ab0ced3465cf51d1dfbc7c56d /scripts/options_doc.lua | |
parent | d7de350233e8f686b9affac9c1e106a6602f5fe8 (diff) |
feat: allow configuring conform.format() args on a per-filetype basis
Diffstat (limited to 'scripts/options_doc.lua')
-rw-r--r-- | scripts/options_doc.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/options_doc.lua b/scripts/options_doc.lua index d47c832..c6d8457 100644 --- a/scripts/options_doc.lua +++ b/scripts/options_doc.lua @@ -6,6 +6,8 @@ require("conform").setup({ go = { "goimports", "gofmt" }, -- Use a sub-list to run only the first available formatter javascript = { { "prettierd", "prettier" } }, + -- You can also customize some of the format options for the filetype + rust = { "rustfmt", lsp_format = "fallback" }, -- You can use a function here to determine the formatters dynamically python = function(bufnr) if require("conform").get_formatter_info("ruff_format", bufnr).available then |