hardhat-vscode icon indicating copy to clipboard operation
hardhat-vscode copied to clipboard

Standalone language server

Open kanej opened this issue 2 years ago • 2 comments

a.k.a Wen VIM?

Support the use of the language server component outside of vscode, so it can be leveraged by other editors, initially targeting vim and neovim.

Status - Experimental

We have released an experimental vim-coc extension that wraps the language server. It can be installed from here: https://www.npmjs.com/package/@ignored/coc-solidity

Subissues

  • https://github.com/NomicFoundation/hardhat-vscode/issues/68
  • https://github.com/NomicFoundation/hardhat-vscode/issues/341
  • https://github.com/NomicFoundation/hardhat-vscode/issues/320
  • https://github.com/NomicFoundation/hardhat-vscode/issues/437

Release Checklist

  • [x] Add docs for setup and configuring the language server for vim-coc
  • [x] Add docs for setup and config for neovim
  • [x] Check analytics meets privacy policy
  • [x] Add a small note to the EXTENSION.md indicating there are equivalents for other editors
  • [x] move the language server and vim-coc extension to the @nomicfoundation namespace
  • [ ] Add links to popular vim/nvim repos like:
    • [ ] lspconfig
    • [x] mason
    • [ ] others?

kanej avatar Jan 03 '23 11:01 kanej

+1 for Mason

Edit: Oh wait, I see it was added to registry. Awesome.

Handfish avatar May 05 '23 15:05 Handfish

@kanej is there a way to set the formatter with the nvim lsp?

I use the following config but it ignores the forge fmt:

  solidity_ls_nomicfoundation = {
    settings = {
      solidity = {
        formatter = { "forge" }      
      }
    }
  },

thank you in advance 🙏

pyk avatar Oct 23 '23 22:10 pyk