blink.cmp source for environment variables.
Inspired by cmp-env.
- Trigger on dollar sign
$.
{
"saghen/blink.cmp",
dependencies = {
"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,
},
}
}
}
}
}Default: require("blink.cmp.types").CompletionItemKind.Variable,
CompletionItemKind shown in completion menu.
Default: false
Specify whether to show braces in completion item. For example, ${PATH} instead of $PATH.
Default: true
Specify whether to show documentation window which contains value of environment variable selected.
- @amarz45 cmp-env general improvements and implementation for show_braces options
- Based on moyiz/blink-emoji.nvim and MahanRahmati/blink-nerdfont.nvim