Files
dotfiles/nvim/.config/nvim/lua/romanzy/plugins/conform.lua
2026-07-01 23:10:47 +02:00

23 lines
594 B
Lua

vim.pack.add({
{
src = "https://github.com/stevearc/conform.nvim",
name = "conform.nvim",
},
})
require("conform").setup({
formatters_by_ft = {
javascript = { "prettier" },
javascriptreact = { "prettier" },
typescript = { "prettier" },
typescriptreact = { "prettier" },
c = { filter = function() return false end },
cpp = { filter = function() return false end },
h = { filter = function() return false end }
},
format_on_save = {
lsp_format = "fallback",
timeout_ms = 2000,
},
})