Format .mjs and .mts

This commit is contained in:
Jan Hamal Dvořák 2024-11-02 22:44:40 +01:00
parent 449a510643
commit 7495bef914

View file

@ -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,