From 562b8065ec45b65c477c28621c3bf669cf07a0e4 Mon Sep 17 00:00:00 2001 From: Dominic DiTaranto Date: Tue, 25 Nov 2025 15:45:40 -0500 Subject: [PATCH] updates --- init.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/init.lua b/init.lua index dfbdb96..ff847ad 100644 --- a/init.lua +++ b/init.lua @@ -136,6 +136,9 @@ vim.pack.add({ -- dashboard { src = "https://github.com/nvimdev/dashboard-nvim" }, + + -- prettier + { src = "https://github.com/MunifTanjim/prettier.nvim" }, }) -- telescope (sadly these configs need to be after vimpack) @@ -340,3 +343,26 @@ for _, plugin in pairs(enable_providers) do end vim.g.loaded_python3_provider = nil + +require("prettier").setup({ + bin = 'prettier', -- or `'prettierd'` (v0.23.3+) + filetypes = { + "css", + "graphql", + "html", + "javascript", + "javascriptreact", + "json", + "less", + "markdown", + "scss", + "typescript", + "typescriptreact", + "yaml", + }, +}) + +vim.api.nvim_create_autocmd("FileType", { + pattern = "htmldjango", + command = "setlocal shiftwidth=2 tabstop=2" +})