MiniDeps.add({ source = 'https://github.com/stevearc/conform.nvim' }) require('conform').setup({ notify_on_error = true, formatters_by_ft = { c = { 'clang-format' }, h = { 'clang-format' }, cpp = { 'clang-format' }, hpp = { 'clang-format' }, glsl = { 'clang-format', lsp_format = "first" }, typescript = { 'clang-format', lsp_format = "first" }, css = { 'clang-format' }, rust = { 'rustfmt' }, bash = { 'shfmt' }, python = { 'isort' }, -- json = { 'jq' }, -- yaml = { 'yq' }, toml = { 'yq' }, xml = { 'yq' }, }, }) Map('n', 'f', function() require('conform').format({ async = true, lsp_format = 'fallback' }) end, { desc = 'Format Buffer' })