From 80970a7eba292d723581cb62fef6a35109026380 Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Wed, 17 Feb 2021 09:18:59 -0800 Subject: hls: add a default formatter --- lua/lspconfig/hls.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lua') diff --git a/lua/lspconfig/hls.lua b/lua/lspconfig/hls.lua index 9c29b82c..0daeeb03 100644 --- a/lua/lspconfig/hls.lua +++ b/lua/lspconfig/hls.lua @@ -6,6 +6,11 @@ configs.hls = { cmd = {"haskell-language-server-wrapper", "--lsp"}; filetypes = {"haskell", "lhaskell"}; root_dir = util.root_pattern("*.cabal", "stack.yaml", "cabal.project", "package.yaml", "hie.yaml"); + settings = { + languageServerHaskell = { + formattingProvider = "ormolu"; + }; + }; }; docs = { -- cgit v1.2.3-70-g09d2