From c75f696013f815b4ad26d04f437d528e369b3157 Mon Sep 17 00:00:00 2001 From: stitchy Date: Tue, 10 Dec 2024 13:32:56 +0000 Subject: [PATCH] nvim: add prettier formating to conform for html and css --- config/nvim/nvim.lua | 4 +++- packages/default.nix | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config/nvim/nvim.lua b/config/nvim/nvim.lua index ae8f96f..a2aa1ff 100644 --- a/config/nvim/nvim.lua +++ b/config/nvim/nvim.lua @@ -106,7 +106,9 @@ cmp.setup { -- Funky plugins require("conform").setup({ formatters_by_ft = { - python = { "isort", "black" }, + css = { "prettier", }, + html = { "prettier", }, + python = { "black" }, }, format_on_save = { timeout_ms = 500, diff --git a/packages/default.nix b/packages/default.nix index c33d969..7e470ce 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -88,7 +88,8 @@ in ++ (lib.optionals config.stitchyconf.artPkgs.enable artPkgs) ++ (lib.optionals (config.stitchyconf.form == "pc") pcPkgs) ++ (lib.optionals (config.stitchyconf.form == "handheld") handheldPkgs) - ++ (lib.optionals (config.stitchyconf.form == "server") serverPkgs); + ++ (lib.optionals (config.stitchyconf.form == "server") serverPkgs) + ++ [ pkgs.nodePackages.prettier ]; # To-do figure out how to section these off programs = {