Format .cjs
This commit is contained in:
parent
751dceda4a
commit
22bdd0eb7f
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ require('nvim-format-buffer').setup({
|
||||||
format_rules = {
|
format_rules = {
|
||||||
{ pattern = { '*.c', '*.h' }, command = 'clang-format' },
|
{ 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()
|
command = function()
|
||||||
return 'prettier --stdin-filepath ' .. vim.api.nvim_buf_get_name(0)
|
return 'prettier --stdin-filepath ' .. vim.api.nvim_buf_get_name(0)
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in a new issue