Skip to content

qiuxiang/coc-solidity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coc-solidity npm-badge

coc.nvim extension for solidity. Language server provided by solidity-ls.

imageimageimage

This language server has no error tolerance. Means that some features will only work if sources are no syntax error.

For example:

// should not work
msg.
   ^

// should work
msg.;
   ^

Features

  • completion
    • local variables, state variables, functions image image
    • contracts image
    • globally variables and it's members image image
    • struct members image
    • external contract functions image
  • diagnostics image image
  • hover documention image image
  • references image
  • formatting (by prettier-plugin-solidity)
  • rename
  • signature help (basic implementation)
  • go to references
  • go to definition

Install

:CocInstall coc-solidity

Make sure you have installed solc.

foundry supports

run forge remappings > remappings.txt in project root.

Todo

  • code actions
  • semantic tokens