nvim: add prettier formating to conform for html and css

This commit is contained in:
stitchy 2024-12-10 13:32:56 +00:00
parent d9e21b23bd
commit c75f696013
Signed by: stitchy
SSH key fingerprint: SHA256:yz2SoxdnY67tfY5Jzb0f2v8f5W3o/IF359kbcquWip8
2 changed files with 5 additions and 2 deletions

View file

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

View file

@ -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 = {