aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/hls.lua5
1 files changed, 5 insertions, 0 deletions
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 = {