Skip to content

TheSnakeWitcher/hardhat.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hardhat.nvim

Plugin to more conveniently/easily interact with hardhat from neovim. These is a WIP, any contributions are welcome and appreciated.

Features

  • 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 call require("hardhat.cli").refresh_completion().
  • Neotest integration with neotest-hardhat adapter.
  • Telescope integrations which provide
    • Picker to deploy using hardhat-ignition and hardhat-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.
  • Overseer integration for the HH command and later for provided telescope pickers.

Index

Installation

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",
    },
}

Configuration

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")

Documentation

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published