1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 09:30:04 +08:00
SpaceVim/bundle/nvim-lspconfig-latest/lua/lspconfig/server_configurations/solc.lua

20 lines
463 B
Lua
Vendored

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')]],
},
},
}