format typescript and javascript on save

This commit is contained in:
Nick Burt 2026-04-28 21:32:18 -05:00
parent 0f47ba4699
commit 136d55c830
1 changed files with 4 additions and 1 deletions

View File

@ -699,7 +699,10 @@ require('lazy').setup({
format_on_save = function(bufnr) format_on_save = function(bufnr)
-- You can specify filetypes to autoformat on save here: -- You can specify filetypes to autoformat on save here:
local enabled_filetypes = { local enabled_filetypes = {
-- lua = true, lua = true,
javascript = true,
typescript = true,
typescriptreact = true,
-- python = true, -- python = true,
} }
if enabled_filetypes[vim.bo[bufnr].filetype] then if enabled_filetypes[vim.bo[bufnr].filetype] then