From 22bdd0eb7fa6314439a38057443393bfb5af1388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Hamal=20Dvo=C5=99=C3=A1k?= Date: Tue, 4 Mar 2025 20:03:28 +0100 Subject: [PATCH] Format .cjs --- lua/config/format.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/config/format.lua b/lua/config/format.lua index 2a5411f..0ee6aef 100644 --- a/lua/config/format.lua +++ b/lua/config/format.lua @@ -3,7 +3,7 @@ require('nvim-format-buffer').setup({ format_rules = { { pattern = { '*.c', '*.h' }, command = 'clang-format' }, { - pattern = { '*.js', '*.mjs', '*.ts', '*.mts', '*.tsx', '*.vue', '*.css' }, + pattern = { '*.js', '*.mjs', '*.ts', '*.mts', '*.cjs', '*.tsx', '*.vue', '*.css' }, command = function() return 'prettier --stdin-filepath ' .. vim.api.nvim_buf_get_name(0) end,