Skip to content

Instantly share code, notes, and snippets.

@cserb
Created April 15, 2023 09:30
Show Gist options
  • Save cserb/1c4f7d587d8edf8c78264429d2132d29 to your computer and use it in GitHub Desktop.
Save cserb/1c4f7d587d8edf8c78264429d2132d29 to your computer and use it in GitHub Desktop.
NomicFoundation Solidity Language Server – LSP-Zero Setup for NeoVim
require('lspconfig.configs').solidity = {
default_config = {
cmd = {'nomicfoundation-solidity-language-server', '--stdio'},
filetypes = { 'solidity' },
name = 'solidity',
root_dir = require('lspconfig.util').find_git_ancestor,
single_file_support = true,
}
}
require('lspconfig').solidity.setup({})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment