diff options
| author | William Boman <william@redwill.se> | 2021-12-30 19:03:42 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-30 13:03:42 -0500 |
| commit | a4ceb758ee546cadead36dc91c6e79b8d3d75263 (patch) | |
| tree | fb734ff93328e3b8dcb9a56cdf7077b3cdb3fe97 /lua/lspconfig | |
| parent | docs: update CONTRIBUTING.md (diff) | |
| download | nvim-lspconfig-a4ceb758ee546cadead36dc91c6e79b8d3d75263.tar nvim-lspconfig-a4ceb758ee546cadead36dc91c6e79b8d3d75263.tar.gz nvim-lspconfig-a4ceb758ee546cadead36dc91c6e79b8d3d75263.tar.bz2 nvim-lspconfig-a4ceb758ee546cadead36dc91c6e79b8d3d75263.tar.lz nvim-lspconfig-a4ceb758ee546cadead36dc91c6e79b8d3d75263.tar.xz nvim-lspconfig-a4ceb758ee546cadead36dc91c6e79b8d3d75263.tar.zst nvim-lspconfig-a4ceb758ee546cadead36dc91c6e79b8d3d75263.zip | |
feat: add solc (#1623)
Diffstat (limited to 'lua/lspconfig')
| -rw-r--r-- | lua/lspconfig/server_configurations/solc.lua | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/solc.lua b/lua/lspconfig/server_configurations/solc.lua new file mode 100644 index 00000000..42e44fe3 --- /dev/null +++ b/lua/lspconfig/server_configurations/solc.lua @@ -0,0 +1,19 @@ +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")]], + }, + }, +} |
