diff options
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()" |