aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim_lsp/leanls.lua
blob: 0f2e9618d2661af62cff6cb9ac94ccd202dfa9f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
local skeleton = require 'nvim_lsp/skeleton'
local util = require 'nvim_lsp/util'
local lsp = vim.lsp

skeleton.leanls = {
  default_config = {
    cmd = {"lean-language-server", "--stdio"};
    filetypes = {"lean"};
    root_dir = util.root_pattern(".git");
    log_level = lsp.protocol.MessageType.Warning;
    settings = {};
  };
  -- on_new_config = function(new_config) end;
  -- on_attach = function(client, bufnr) end;
  docs = {
    description = [[
    https://github.com/leanprover/lean-client-js/tree/master/lean-language-server

    Lean language server.
    ]];
    default_config = {
      root_dir = [[util.root_pattern(".git")]];
    };
  };
}
-- vim:et ts=2 sw=2