From ddcd9e6aae50d6397e43e4fc9ba0cf7a82cc79de Mon Sep 17 00:00:00 2001 From: Hirokazu Hata Date: Sun, 6 Sep 2020 17:49:21 +0900 Subject: Rename nvim_lsp to lspconfig --- lua/lspconfig/hie.lua | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 lua/lspconfig/hie.lua (limited to 'lua/lspconfig/hie.lua') diff --git a/lua/lspconfig/hie.lua b/lua/lspconfig/hie.lua new file mode 100644 index 00000000..f57326dc --- /dev/null +++ b/lua/lspconfig/hie.lua @@ -0,0 +1,38 @@ +local configs = require 'lspconfig/configs' +local util = require 'lspconfig/util' + +configs.hie = { + default_config = { + cmd = {"hie-wrapper", "--lsp"}; + filetypes = {"haskell"}; + root_dir = util.root_pattern("stack.yaml", "package.yaml", ".git"); + }; + + docs = { + package_json = "https://raw.githubusercontent.com/alanz/vscode-hie-server/master/package.json"; + description = [[ +https://github.com/haskell/haskell-ide-engine + +the following init_options are supported (see https://github.com/haskell/haskell-ide-engine#configuration): +```lua +init_options = { + languageServerHaskell = { + hlintOn = bool; + maxNumberOfProblems = number; + diagnosticsDebounceDuration = number; + liquidOn = bool (default false); + completionSnippetsOn = bool (default true); + formatOnImportOn = bool (default true); + formattingProvider = string (default "brittany", alternate "floskell"); + } +} +``` + ]]; + + default_config = { + root_dir = [[root_pattern("stack.yaml", "package.yaml", ".git")]]; + }; + }; +}; + +-- vim:et ts=2 sw=2 -- cgit v1.2.3-70-g09d2