summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.3/lua/lspconfig/server_configurations/solidity_ls.lua
blob: 4d4c4902d5baf5a334844dd9d69e6adfdbbdf297 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
local util = require 'lspconfig.util'

local bin_name = 'solidity-language-server'
if vim.fn.has 'win32' == 1 then
  bin_name = bin_name .. '.cmd'
end

return {
  default_config = {
    cmd = { bin_name, '--stdio' },
    filetypes = { 'solidity' },
    root_dir = util.root_pattern('.git', 'package.json'),
  },
  docs = {
    description = [[
npm install -g solidity-language-server

solidity-language-server is a language server for the solidity language ported from the vscode solidity extension
]],
    default_config = {
      root_dir = [[root_pattern(".git", "package.json")]],
    },
  },
}