diff options
| author | Stefan Weigl-Bosker <stefan@s00.xyz> | 2025-07-25 13:09:26 -0400 |
|---|---|---|
| committer | Stefan Weigl-Bosker <stefan@s00.xyz> | 2025-07-25 13:09:26 -0400 |
| commit | 1e50039433e9a99ae023b68f70f5d8de981c6140 (patch) | |
| tree | b4c674576874f9dd056d72b36405b89339ef2231 /modules/neovim/nvim/lua/config/lsp/conform.lua | |
| parent | 97b9b85e8d9744010ea775ef479a172c6719cb0d (diff) | |
| download | home-1e50039433e9a99ae023b68f70f5d8de981c6140.tar.gz | |
modules/neovim: use conform for formatting
Diffstat (limited to 'modules/neovim/nvim/lua/config/lsp/conform.lua')
| -rw-r--r-- | modules/neovim/nvim/lua/config/lsp/conform.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/neovim/nvim/lua/config/lsp/conform.lua b/modules/neovim/nvim/lua/config/lsp/conform.lua new file mode 100644 index 0000000..3727b8c --- /dev/null +++ b/modules/neovim/nvim/lua/config/lsp/conform.lua @@ -0,0 +1,13 @@ +-- unused for now +require("conform").setup({ + formatters_by_ft = { + lua = { "stylua" }, + python = { "black", "isort" }, + zig = { "zigfmt" }, + nix = { "nixfmt" }, + c = { "clang-formt" }, + cpp = { "clang-format" }, + }, +}) + +vim.o.formatexpr = "v:lua.require'conform'.formatexpr()" |