Skip to content

a neovim plugin to display OS and project wise ENV variables

Notifications You must be signed in to change notification settings

yohendry/envs.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

envs.nvim

nvim plugin that shows the value of system wide or project specific enviroment variable under the cursor

tl;dr

{
    "yohendry/envs.nvim",
    event = { "BufRead", "BufNew" },
    config = true,
    name = "envs",
    keys = {
        { "<C-;>", "<cmd>ShowEnv<cr>", desc = "Lookup as ENV var" },
    },
}

Install

lazy

{
    "yohendry/envs.nvim",
    event = { "BufRead", "BufNew" },
    config = function()
        require("envs").setup({
            not_found_prefix = "¯\\_(ツ)_/¯ "
        })
    end,
    name = "envs",
    keys = {
        { "<C-;>", "<cmd>ShowEnv<cr>", desc = "Lookup as ENV var" },
    },
}

Config

{
	popup = true, -- display a popup window relative to the cursor
	print = true, -- prnts the env value to `messages`
	window = {
		title = "   envs ", -- popup window title
		border = "single", -- popup border style
		style = "minimal", -- popup window style
	},
	not_found_prefix = "",
	close_mappings = { "q", "<Esc>" }, -- key bindigs to close the popup
}

Usage

  • :ShowEnv
  • use open_mapping hotkey

to show ENV value under cursor

Screenshots

About

a neovim plugin to display OS and project wise ENV variables

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages