Skip to content

About

Tiny Neovim plugin for setting env vars

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

nvim-dotenv

Tiny Neovim plugin for setting env vars from a test.env file in the root directory of the project you're working on, originally intended to use with neotest.

Adds the command SetEnv.

Installation

For Lazy:

return {
	"petermnhull/nvim-dotenv",
	config = function()
		require("nvim-dotenv").setup({})

		vim.keymap.set("n", "<leader>ts", "<Cmd>SetEnv<CR>", { desc = "[s]et env from test.env file" })
	end,
}

TODO

Some ideas to make this into a proper plugin.

  • Option for specifying which .env file to use.
  • Option for running the function on start up.

About

Tiny Neovim plugin for setting env vars

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages