Add haskell language server

This commit is contained in:
2026-02-17 23:29:56 +01:00
parent 5868fada42
commit 87f0ad2936

View File

@ -36,9 +36,15 @@ return {
vim.lsp.config("rust_analyzer", {})
vim.lsp.enable("rust_analyzer")
-- Haskell
vim.lsp.config('hls', {
filetypes = { 'haskell', 'lhaskell', 'cabal' },
})
vim.lsp.enable('hls')
-- Auto format
vim.api.nvim_create_autocmd("BufWritePre", {
pattern = "*.rs",
pattern = {"*.rs", "*.hs"},
callback = function()
vim.lsp.buf.format({ async = false })
end,