diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-06-24 16:34:51 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-06-24 16:34:51 +0800 |
commit | 2a1645ae9593114514a7f28fa6d9109d1820375d (patch) | |
tree | bab2ac0a019ca9af961a04b2a58f0bac3d49bdeb /vim/nvim/lua/configs/conform.lua | |
parent | fdb53f590cef5499b14322d22fee47722b135626 (diff) |
Update
Diffstat (limited to 'vim/nvim/lua/configs/conform.lua')
-rw-r--r-- | vim/nvim/lua/configs/conform.lua | 15 |
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 @@ | |||
1 | local 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 | |||
15 | require("conform").setup(options) | ||