Files
dotFiles/.config/nvim/lua/lilJ/plugins/conform.lua
Kulvir Singh 4352fa101b TJ Revamp
2024-05-14 13:07:30 +05:30

19 lines
381 B
Lua

return {
"stevearc/conform.nvim",
opts = {
notify_on_error = false,
format_on_save = function(bufnr)
local disable_filetypes = {}
return {
timeout_ms = 500,
lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype],
}
end,
formatters_by_ft = {
c = { "clang-format" },
go = { "gofumpt", "goimports_reviser" },
lua = { "stylua" },
},
},
}