diff options
| author | Skladnayazebra <skladnayazebra@gmail.com> | 2026-06-29 17:24:37 +0200 |
|---|---|---|
| committer | Skladnayazebra <skladnayazebra@gmail.com> | 2026-06-29 17:24:37 +0200 |
| commit | 472838e324ccf89a675ddc9e19070bd82b7fbad0 (patch) | |
| tree | 3bd84041fa0713b180f78f6b60519868b71f5d85 /nvim/lua/config | |
| parent | 387451a7434934febd38867770bb791c5aa489d0 (diff) | |
Install formatter plugin
Diffstat (limited to 'nvim/lua/config')
| -rw-r--r-- | nvim/lua/config/formatters.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nvim/lua/config/formatters.lua b/nvim/lua/config/formatters.lua new file mode 100644 index 0000000..8199364 --- /dev/null +++ b/nvim/lua/config/formatters.lua @@ -0,0 +1,8 @@ +require("conform").setup({ + formatters_by_ft = { + lua = { "stylua" }, + -- npm install -g @fsouza/prettierd + javascript = { "prettierd", "prettier", stop_after_first = true }, + typescript = { "prettierd", "prettier", stop_after_first = true }, + }, +}) |
