Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yohendry/envs.nvim
a neovim plugin to display OS and project wise ENV variables
https://github.com/yohendry/envs.nvim
Last synced: 29 days ago
JSON representation
a neovim plugin to display OS and project wise ENV variables
- Host: GitHub
- URL: https://github.com/yohendry/envs.nvim
- Owner: yohendry
- Created: 2024-05-28T19:06:06.000Z (about 1 month ago)
- Default Branch: master
- Last Pushed: 2024-05-28T21:27:45.000Z (about 1 month ago)
- Last Synced: 2024-05-29T10:26:19.409Z (about 1 month ago)
- Language: Lua
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Lists
- my-neovim-pluginlist - yohendry/envs.nvim - commit/yohendry/envs.nvim) ![](https://img.shields.io/github/commit-activity/y/yohendry/envs.nvim) (Other Standard Feature Enhancement / Environment Variable)
README
# envs.nvim
nvim plugin that shows the value of system wide or project specific enviroment variable under the cursor# tl;dr
```lua
{
"yohendry/envs.nvim",
event = "LspAttach",
config = function()
require("envs").setup({
popup = true, -- display a popup window relative to the cursor
print = false, -- prnts the env value to `messages`
window = {
title = " envs ", -- popup window title
border = "double", -- popup border style
style = "minimal", -- popup window style
},
close_mappings = { "q", "" }, -- key bindigs to close the popup
})
vim.keymap.set("n", "E", "ShowEnv", { buffer = 0, desc = "Show Env variable value under cursor" })
end,
name = "envs",
}```
- [envs.nvim](#envsnvim)
- [tl;dr](#tldr)
- [Install](#install)
- [lazy](#lazy)
- [Config](#config)
- [Usage](#usage)
- [Screenshots](#screenshots)## Install
### lazy
```lua
{ "yohendry/envs.nvim", config = true }
```## Config
```lua
{
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
},
close_mappings = { "q", "" }, -- kesy bindigs for the popup to close
}
```## Usage
- `:ShowEnv`
- use `open_mapping` hotkeyto show ENV value under cursor
## Screenshots