aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/nvim/lua/configs/conform.lua
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-06-24 16:34:51 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-06-24 16:34:51 +0800
commit2a1645ae9593114514a7f28fa6d9109d1820375d (patch)
treebab2ac0a019ca9af961a04b2a58f0bac3d49bdeb /vim/nvim/lua/configs/conform.lua
parentfdb53f590cef5499b14322d22fee47722b135626 (diff)
Update
Diffstat (limited to 'vim/nvim/lua/configs/conform.lua')
-rw-r--r--vim/nvim/lua/configs/conform.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/vim/nvim/lua/configs/conform.lua b/vim/nvim/lua/configs/conform.lua
new file mode 100644
index 0000000..a000447
--- /dev/null
+++ b/vim/nvim/lua/configs/conform.lua
@@ -0,0 +1,15 @@
1local options = {
2 formatters_by_ft = {
3 lua = { "stylua" },
4 -- css = { "prettier" },
5 -- html = { "prettier" },
6 },
7
8 -- format_on_save = {
9 -- -- These options will be passed to conform.format()
10 -- timeout_ms = 500,
11 -- lsp_fallback = true,
12 -- },
13}
14
15require("conform").setup(options)