aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim_lsp/hls.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/lua/nvim_lsp/hls.lua b/lua/nvim_lsp/hls.lua
new file mode 100644
index 00000000..a55294dc
--- /dev/null
+++ b/lua/nvim_lsp/hls.lua
@@ -0,0 +1,24 @@
+local configs = require 'nvim_lsp/configs'
+local util = require 'nvim_lsp/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