blink-cmp-env
May 5, 2026 ยท View on GitHub
blink.cmp source for environment variables.
Inspired by cmp-env.
Features
- Trigger on dollar sign
$.
Installation
lazy.nvim
{
"saghen/blink.cmp",
dependencies = {
"saghen/blink.lib", -- required only for blink.cmp v2 users
"bydlw98/blink-cmp-env",
},
opts = {
sources = {
default = { "lsp", "path", "snippets", "buffer", "env" },
providers = {
env = {
name = "Env",
module = "blink-cmp-env",
--- @type blink-cmp-env.Options
opts = {
item_kind = require("blink.cmp.types").CompletionItemKind.Variable,
show_braces = false,
show_documentation_window = true,
},
}
}
}
}
}
Options
item_kind (type: number)
Default: require("blink.cmp.types").CompletionItemKind.Variable,
CompletionItemKind shown in completion menu.
show_braces (type: boolean)
Default: false
Specify whether to show braces in completion item. For example, ${PATH} instead of $PATH.
show_documentation_window (type: boolean)
Default: true
Specify whether to show documentation window which contains value of environment variable selected.
Special Thanks
- @amarz45 cmp-env general improvements and implementation for show_braces options
Credit
- Based on moyiz/blink-emoji.nvim and MahanRahmati/blink-nerdfont.nvim