diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim_lsp.lua | 1 | ||||
| -rw-r--r-- | lua/nvim_lsp/ghcide.lua | 27 |
2 files changed, 28 insertions, 0 deletions
diff --git a/lua/nvim_lsp.lua b/lua/nvim_lsp.lua index 9dc7d72a..87beaee5 100644 --- a/lua/nvim_lsp.lua +++ b/lua/nvim_lsp.lua @@ -8,6 +8,7 @@ require 'nvim_lsp/dockerls' require 'nvim_lsp/elmls' require 'nvim_lsp/flow' require 'nvim_lsp/fortls' +require 'nvim_lsp/ghcide' require 'nvim_lsp/gopls' require 'nvim_lsp/hie' require 'nvim_lsp/leanls' diff --git a/lua/nvim_lsp/ghcide.lua b/lua/nvim_lsp/ghcide.lua new file mode 100644 index 00000000..65d799a4 --- /dev/null +++ b/lua/nvim_lsp/ghcide.lua @@ -0,0 +1,27 @@ +local skeleton = require 'nvim_lsp/skeleton' +local util = require 'nvim_lsp/util' +local lsp = vim.lsp + +skeleton.ghcide = { + default_config = { + cmd = { "ghcide", "--lsp" }; + filetypes = { "haskell", "lhaskell" }; + root_dir = util.root_pattern("stack.yaml", "hie-bios", "BUILD.bazel", "cabal.config", "package.yaml"); + log_level = lsp.protocol.MessageType.Warning; + settings = {}; + }; + + docs = { + vscode = "DigitalAssetHoldingsLLC.ghcide"; + description = [[ +https://github.com/digital-asset/ghcide + +A library for building Haskell IDE tooling. +]]; + default_config = { + root_dir = [[root_pattern("stack.yaml", "hie-bios", "BUILD.bazel", "cabal.config", "package.yaml")]]; + }; + }; +}; + +-- vim:et ts=2 sw=2 |
