aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorrektrex <23721797+rektrex@users.noreply.github.com>2019-11-30 20:50:17 +0000
committerJustin M. Keyes <justinkz@gmail.com>2019-11-30 12:50:17 -0800
commit2c09a8eafdcbeb5e5918f60a709f8020aea0da18 (patch)
treedf905eb088146e445f93e39b813ff6b5a5d88e0e /lua
parentAdd docker lsp (#56) (diff)
downloadnvim-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')
-rw-r--r--lua/nvim_lsp.lua1
-rw-r--r--lua/nvim_lsp/ghcide.lua27
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