formatting
This commit is contained in:
parent
f89e920b91
commit
ee23f6e4bb
2 changed files with 16 additions and 6 deletions
16
nvim/.config/nvim/lua/wball/plugins/conform.lua
Normal file
16
nvim/.config/nvim/lua/wball/plugins/conform.lua
Normal 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",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -71,11 +71,5 @@ return {
|
||||||
vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(vim.lsp.handlers.hover, { border = "single" })
|
vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(vim.lsp.handlers.hover, { border = "single" })
|
||||||
|
|
||||||
vim.diagnostic.config({ virtual_text = true })
|
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,
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue