summaryrefslogtreecommitdiff
path: root/after/plugin/conform.lua
diff options
context:
space:
mode:
Diffstat (limited to 'after/plugin/conform.lua')
-rw-r--r--after/plugin/conform.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/after/plugin/conform.lua b/after/plugin/conform.lua
new file mode 100644
index 0000000..13961b6
--- /dev/null
+++ b/after/plugin/conform.lua
@@ -0,0 +1,10 @@
+require("conform").setup({
+ formatters_by_ft = {
+ lua = { "stylua" },
+ },
+ format_on_save = {
+ -- These options will be passed to conform.format()
+ timeout_ms = 500,
+ lsp_format = "fallback",
+ },
+})