diff --git a/config/nvim/nvim.lua b/config/nvim/nvim.lua index d56ae46..22a388a 100644 --- a/config/nvim/nvim.lua +++ b/config/nvim/nvim.lua @@ -118,6 +118,12 @@ require("conform").setup({ javascript = { "prettier", }, python = { "black" }, C = { "clang-format"}, + typst = { "prettypst" } + }, + formatters = { + prettypst = { + args = { "--use-std-in", "--use-std-out" } + } }, format_on_save = { timeout_ms = 500, diff --git a/packages/default.nix b/packages/default.nix index 80d93e5..b331e20 100644 --- a/packages/default.nix +++ b/packages/default.nix @@ -24,6 +24,7 @@ let "libnotify" "mutt-wizard" "powertop" + "prettypst" "wl-clipboard" # temporary home manager things "eww"