summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/solc.lua
blob: 9ae3948d28c54acf8cd6eb87c30c01f583c87afe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
local util = require 'lspconfig.util'

return {
  default_config = {
    cmd = { 'solc', '--lsp' },
    filetypes = { 'solidity' },
    root_dir = util.root_pattern('hardhat.config.*', '.git'),
  },
  docs = {
    description = [[
https://docs.soliditylang.org/en/latest/installing-solidity.html

solc is the native language server for the Solidity language.
]],
    default_config = {
      root_dir = [[root_pattern('hardhat.config.*', '.git')]],
    },
  },
}