0.5.4 • Published 3 months ago

solidity-ls v0.5.4

Weekly downloads
-
License
-
Repository
-
Last release
3 months ago

solidity-ls npm-badge

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
  • rename
  • signature help (basic implementation)
  • go to references
  • go to definition

Usage

npm i solidity-ls -g
solidity-ls --stdio

or

npx solidity-ls --stdio

coc.nvim

:CocInstall coc-solidity

neovim lsp

More info: https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#solidity

local lspconfig = require 'lspconfig'
lspconfig.solidity.setup({
  -- on_attach = on_attach, -- probably you will need this.
  -- capabilities = capabilities,
  settings = {
    -- example of global remapping
    solidity = {
        includePath = '',
        remapping = { ["@OpenZeppelin/"] = 'OpenZeppelin/openzeppelin-contracts@4.6.0/' },
        -- Array of paths to pass as --allow-paths to solc
        allowPaths = {}
    }
  },
})

foundry supports

run forge remappings > remappings.txt in project root.

0.5.4

3 months ago

0.5.3

2 years ago

0.5.0

2 years ago

0.5.2

2 years ago

0.4.3

2 years ago

0.5.1

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago