aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/hls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lspconfig/hls.lua')
-rw-r--r--lua/lspconfig/hls.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/lua/lspconfig/hls.lua b/lua/lspconfig/hls.lua
new file mode 100644
index 00000000..9c29b82c
--- /dev/null
+++ b/lua/lspconfig/hls.lua
@@ -0,0 +1,24 @@
+local configs = require 'lspconfig/configs'
+local util = require 'lspconfig/util'
+
+configs.hls = {
+ default_config = {
+ cmd = {"haskell-language-server-wrapper", "--lsp"};
+ filetypes = {"haskell", "lhaskell"};
+ root_dir = util.root_pattern("*.cabal", "stack.yaml", "cabal.project", "package.yaml", "hie.yaml");
+ };
+
+ docs = {
+ description = [[
+https://github.com/haskell/haskell-language-server
+
+Haskell Language Server
+ ]];
+
+ default_config = {
+ root_dir = [[root_pattern("*.cabal", "stack.yaml", "cabal.project", "package.yaml", "hie.yaml")]];
+ };
+ };
+};
+
+-- vim:et ts=2 sw=2