Tired of writing NatSpec comments by hand?
Saw the format and thought to yourself, wow that doesn't look fun to type out?
Then, this is the plugin for you!
solc
in your path. The real, fullsolc
, none of thatsolcjs
nonsensepython3 >= 3.6
we using f-strings here, beware
If you're using some sort of plugin manager, just add this to your init.vim
Plug 'fmorisan/vim-solnatspec'
And before you ask, yes - it works with both NeoVim and Vim.
Put your cursor on a function's name (preferrably in its definition line) and exec
:SolNatSpec
This will insert an already formatted NatSpec comment above your cursor. Feel free to bind this call somewhere.
Just throw a PR here. Help would be great. I don't understand VimScript fully, but this was fun to hack together.