diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-09-05 18:08:14 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-05 18:08:14 -0700 |
| commit | 9a7401d1449cce9fffaf61330005b0388df1fe89 (patch) | |
| tree | e2cc6c9373141816feb4b894e256724ec8124a77 | |
| parent | [docgen] Update CONFIG.md (diff) | |
| download | nvim-lspconfig-9a7401d1449cce9fffaf61330005b0388df1fe89.tar nvim-lspconfig-9a7401d1449cce9fffaf61330005b0388df1fe89.tar.gz nvim-lspconfig-9a7401d1449cce9fffaf61330005b0388df1fe89.tar.bz2 nvim-lspconfig-9a7401d1449cce9fffaf61330005b0388df1fe89.tar.lz nvim-lspconfig-9a7401d1449cce9fffaf61330005b0388df1fe89.tar.xz nvim-lspconfig-9a7401d1449cce9fffaf61330005b0388df1fe89.tar.zst nvim-lspconfig-9a7401d1449cce9fffaf61330005b0388df1fe89.zip | |
feat(solidity): support solang language server (#1227)
Co-authored-by: Christian Chiarulli <chris.machine@pm.me>
| -rw-r--r-- | lua/lspconfig/solang.lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lua/lspconfig/solang.lua b/lua/lspconfig/solang.lua new file mode 100644 index 00000000..3be9d837 --- /dev/null +++ b/lua/lspconfig/solang.lua @@ -0,0 +1,28 @@ +local configs = require 'lspconfig/configs' +local util = require 'lspconfig/util' + +configs.solang = { + default_config = { + cmd = { 'solang', '--language-server' }, + filetypes = { 'solidity' }, + root_dir = util.root_pattern '.git', + }, + docs = { + description = [[ +A language server for Solidity + +See the [documentation](https://solang.readthedocs.io/en/latest/installing.html) for installation instructions. + +The language server only provides the following capabilities: +* Syntax highlighting +* Diagnostics +* Hover + +There is currently no support for completion, goto definition, references, or other functionality. + +]], + default_config = { + root_dir = [[root_pattern(".git")]], + }, + }, +} |
