diff options
| author | rektrex <23721797+rektrex@users.noreply.github.com> | 2019-11-30 20:50:17 +0000 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2019-11-30 12:50:17 -0800 |
| commit | 2c09a8eafdcbeb5e5918f60a709f8020aea0da18 (patch) | |
| tree | df905eb088146e445f93e39b813ff6b5a5d88e0e /lua/nvim_lsp/ghcide.lua | |
| parent | Add docker lsp (#56) (diff) | |
| download | nvim-lspconfig-2c09a8eafdcbeb5e5918f60a709f8020aea0da18.tar nvim-lspconfig-2c09a8eafdcbeb5e5918f60a709f8020aea0da18.tar.gz nvim-lspconfig-2c09a8eafdcbeb5e5918f60a709f8020aea0da18.tar.bz2 nvim-lspconfig-2c09a8eafdcbeb5e5918f60a709f8020aea0da18.tar.lz nvim-lspconfig-2c09a8eafdcbeb5e5918f60a709f8020aea0da18.tar.xz nvim-lspconfig-2c09a8eafdcbeb5e5918f60a709f8020aea0da18.tar.zst nvim-lspconfig-2c09a8eafdcbeb5e5918f60a709f8020aea0da18.zip | |
implement "ghcide" #59
Diffstat (limited to 'lua/nvim_lsp/ghcide.lua')
| -rw-r--r-- | lua/nvim_lsp/ghcide.lua | 27 |
1 files changed, 27 insertions, 0 deletions
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 |
