diff options
| author | anand <anand.panchdhari@gmail.com> | 2025-12-17 15:57:55 +0530 |
|---|---|---|
| committer | anand <anand.panchdhari@gmail.com> | 2025-12-17 15:57:55 +0530 |
| commit | b7ef29a8886a57aadb787807a7c6cf74c1f0ed3a (patch) | |
| tree | 366a68240fbc9da6b1d567bd6c46d1350ad814de /nvim/lsp/solidity_ls_nomicfoundation.lua | |
Nixos
Diffstat (limited to 'nvim/lsp/solidity_ls_nomicfoundation.lua')
| -rwxr-xr-x | nvim/lsp/solidity_ls_nomicfoundation.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nvim/lsp/solidity_ls_nomicfoundation.lua b/nvim/lsp/solidity_ls_nomicfoundation.lua new file mode 100755 index 0000000..fb24b1c --- /dev/null +++ b/nvim/lsp/solidity_ls_nomicfoundation.lua @@ -0,0 +1,26 @@ +---@brief +--- +--- https://github.com/NomicFoundation/hardhat-vscode/blob/development/server/README.md +--- +--- `nomicfoundation-solidity-language-server` can be installed via `npm`: +--- +--- ```sh +--- npm install -g @nomicfoundation/solidity-language-server +--- ``` +--- +--- A language server for the Solidity programming language, built by the Nomic Foundation for the Ethereum community. +return { + cmd = { 'nomicfoundation-solidity-language-server', '--stdio' }, + filetypes = { 'solidity' }, + root_markers = { + 'hardhat.config.js', + 'hardhat.config.ts', + 'foundry.toml', + 'remappings.txt', + 'truffle.js', + 'truffle-config.js', + 'ape-config.yaml', + '.git', + 'package.json', + }, +} |
