Plugin to more conveniently/easily interact with hardhat from neovim. These is a WIP, any contributions are welcome and appreciated.
- Command
HH
for cli integration with hardhat runner and per project autocompletion(similar to vim-fugitive. Completion still isn't automatic, you need to manually callrequire("hardhat.cli").refresh_completion()
. - Neotest integration with
neotest-hardhat
adapter. - Telescope integrations which provide
- Picker to deploy using
hardhat-ignition
andhardhat-deploy
deploy system and with support for multi-chain and multi-contract deployments, that is, you can deploy a set of contracts in a set of networks at once. - Pickers for verification using
hardhat-verify
(verify or sourcify) with multi-chain and multi-contract support. - Pickers to select deployments and networks which are used as intermediary step for the deploy and/or verify pickers.
- Picker to deploy using
- Overseer integration for the
HH
command and later for provided telescope pickers.
Install using your preferred package manager. Next code snippet corresponds to lazy.
{
"TheSnakeWitcher/hardhat.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-neotest/neotest",
"nvim-telescope/telescope.nvim",
"stevearc/overseer.nvim",
},
}
To use the neotest adapter you will need add it to your neotest config and use hardhat-neovim
in your hardhat project .
require("neotest").setup({
adapters = {
require("neotest-hardhat"),
},
})
To use the telescope pickers add the extension to your telescope config.
require("telescope").load_extension("hardhat")
MIT