diff options
author | Yigit Sever | 2025-01-17 10:08:28 +0100 |
---|---|---|
committer | Yigit Sever | 2025-01-17 10:08:28 +0100 |
commit | 602e76b8781e4e01b209ad9274962302e58a5054 (patch) | |
tree | 3af4e87ba490112479805907a99efc3cd5f8d9ec | |
parent | dfc97c33d13c890bd6174ca99600a5c2ed8a715f (diff) | |
download | dotfiles-602e76b8781e4e01b209ad9274962302e58a5054.tar.gz dotfiles-602e76b8781e4e01b209ad9274962302e58a5054.tar.bz2 dotfiles-602e76b8781e4e01b209ad9274962302e58a5054.zip |
nvim: add plugin, conform
-rw-r--r-- | .config/nvim/lua/plugins/conform.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/conform.lua b/.config/nvim/lua/plugins/conform.lua new file mode 100644 index 0000000..9f15bbb --- /dev/null +++ b/.config/nvim/lua/plugins/conform.lua | |||
@@ -0,0 +1,18 @@ | |||
1 | return { | ||
2 | { | ||
3 | 'stevearc/conform.nvim', | ||
4 | opts = { | ||
5 | formatters_by_ft = { | ||
6 | lua = { "stylua" }, | ||
7 | -- Conform will run multiple formatters sequentially | ||
8 | python = { "isort", "black" }, | ||
9 | -- You can customize some of the format options for the filetype (:help conform.format) | ||
10 | rust = { "rustfmt", lsp_format = "fallback" }, | ||
11 | -- Conform will run the first available formatter | ||
12 | javascript = { "prettierd", "prettier", stop_after_first = true }, | ||
13 | -- latex | ||
14 | tex = { "tex-fmt" }, | ||
15 | }, | ||
16 | } | ||
17 | }, | ||
18 | } | ||