Format .mjs and .mts
This commit is contained in:
parent
449a510643
commit
7495bef914
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ require('nvim-format-buffer').setup({
|
|||
{ pattern = { '*.c', '*.h' }, command = 'clang-format' },
|
||||
{ pattern = { '*.py', '*.pyi' }, command = 'black -q --stdin-filename % - 2>/dev/null | isort -q - 2>/dev/null' },
|
||||
{
|
||||
pattern = { '*.js', '*.ts', '*.tsx', '*.vue', '*.css' },
|
||||
pattern = { '*.js', '*.mjs', '*.ts', '*.mts', '*.tsx', '*.vue', '*.css' },
|
||||
command = function()
|
||||
return 'prettier --stdin-filepath ' .. vim.api.nvim_buf_get_name(0)
|
||||
end,
|
||||
|
|
Loading…
Reference in a new issue