From c35e42337a4e7d781f7fb3995f84016392dc7437 Mon Sep 17 00:00:00 2001 From: adollar <71227493+abp1994@users.noreply.github.com> Date: Fri, 27 Jun 2025 10:50:04 +0100 Subject: [PATCH] added prettier for other filetypes in conform --- lazy-lock.json | 4 ++-- lua/plugins/conform.lua | 9 ++++++++- lua/plugins/{telescope.nvim => telescope.lua} | 0 3 files changed, 10 insertions(+), 3 deletions(-) rename lua/plugins/{telescope.nvim => telescope.lua} (100%) diff --git a/lazy-lock.json b/lazy-lock.json index 2ceaf06d..dada6a37 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -11,9 +11,9 @@ "lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" }, "lsp_lines.nvim": { "branch": "main", "commit": "a92c755f182b89ea91bd8a6a2227208026f27b4d" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "c4c84f4521d62de595c0d0f718a9a40c1890c8ce" }, - "mason-tool-installer.nvim": { "branch": "main", "commit": "93a9ff9b34c91c0cb0f7de8d5f7e4abce51d8903" }, + "mason-tool-installer.nvim": { "branch": "main", "commit": "517ef5994ef9d6b738322664d5fdd948f0fdeb46" }, "mason.nvim": { "branch": "main", "commit": "8024d64e1330b86044fed4c8494ef3dcd483a67c" }, - "mini.nvim": { "branch": "main", "commit": "01dce72f2177de6044bcab60ebb8f8e56ade0936" }, + "mini.nvim": { "branch": "main", "commit": "145476d74aaa3236db9dc6705d0fa3eb0f4f8352" }, "neo-tree.nvim": { "branch": "main", "commit": "f481de16a0eb59c985abac8985e3f2e2f75b4875" }, "nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" }, "nvim-autopairs": { "branch": "master", "commit": "2647cce4cb64fb35c212146663384e05ae126bdf" }, diff --git a/lua/plugins/conform.lua b/lua/plugins/conform.lua index 192fb2ae..f9a8c2c1 100644 --- a/lua/plugins/conform.lua +++ b/lua/plugins/conform.lua @@ -1,6 +1,6 @@ return { -- Autoformat 'stevearc/conform.nvim', - event = { 'BufWritePre' }, + event = { 'BufWritePre', 'bufNewFile' }, cmd = { 'ConformInfo' }, keys = { { @@ -33,6 +33,13 @@ return { -- Autoformat python = { 'ruff_fix', 'ruff_format', 'ruff_organize_imports' }, -- You can use 'stop_after_first' to run the first available formatter from the list javascript = { 'prettierd' }, + typescript = { 'prettierd' }, + vue = { 'prettierd' }, + html = { 'prettierd' }, + css = { 'prettierd' }, + json = { 'prettierd' }, + jsonc = { 'prettierd' }, + yaml = { 'prettierd' }, go = { 'goimports', 'golines' }, }, }, diff --git a/lua/plugins/telescope.nvim b/lua/plugins/telescope.lua similarity index 100% rename from lua/plugins/telescope.nvim rename to lua/plugins/telescope.lua