diff options
Diffstat (limited to 'nvim')
-rw-r--r-- | nvim/.config/nvim/lua/plugins/conform.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nvim/.config/nvim/lua/plugins/conform.lua b/nvim/.config/nvim/lua/plugins/conform.lua index 25d9c10..3b7f04c 100644 --- a/nvim/.config/nvim/lua/plugins/conform.lua +++ b/nvim/.config/nvim/lua/plugins/conform.lua @@ -20,8 +20,7 @@ local M = { scss = { "prettier" }, sh = { "shfmt" }, tex = { "latexindent" }, - -- HACK: unable to get typst-lsp to do formatting - typst = { "typstfmt" }, + typst = { "typstyle" }, ["*"] = { "injected", "trim_whitespace", "trim_newlines" }, }, formatters = { @@ -56,6 +55,14 @@ local M = { end, stdin = false, }, + typstyle = { + meta = { + url = "https://github.com/Enter-tainer/typstyle", + description = "Beautiful and reliable typst code formatter", + }, + command = "typstyle", + stdin = true, + }, }, }, } |