nvim/pack/acp/opt/nvim-lspconfig/lua/lspconfig/server_configurations/solc.lua

20 lines
422 B
Lua
Raw Normal View History

2022-01-10 11:08:46 +00:00
local util = require 'lspconfig.util'
return {
default_config = {
cmd = { 'solc', '--lsp' },
filetypes = { 'solidity' },
root_dir = util.root_pattern '.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(".git")]],
},
},
}