formatting

This commit is contained in:
William Ball 2024-08-31 13:11:15 -07:00
parent f89e920b91
commit ee23f6e4bb
2 changed files with 16 additions and 6 deletions

View file

@ -0,0 +1,16 @@
return {
{
"stevearc/conform.nvim",
opts = {
formatters_by_ft = {
sml = { "smlfmt" },
ocaml = { "ocamlformat" },
typst = { "typstyle" },
},
format_on_save = {
timeout_ms = 500,
lsp_format = "fallback",
},
}
}
}

View file

@ -71,11 +71,5 @@ return {
vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(vim.lsp.handlers.hover, { border = "single" })
vim.diagnostic.config({ virtual_text = true })
-- local signs = { Error = " ", Warn = " ", Hint = "󰠠 ", Info = " " }
-- for type, icon in pairs(signs) do
-- local hl = "DiagnosticSign" .. type
-- vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" })
-- end
end,
}