nvim-cmp
source for environment variables.
require("cmp").setup {
sources = {
{ name = "env" }
}
}
Below are the options available for this source. To set any of the options:
cmp.setup({
sources = {
{
name = "env",
option = {
eval_on_confirm = false,
show_documentation_window = true,
item_kind = cmp.lsp.CompletionItemKind.Variable
},
},
},
})
Default: false
Specify whether a confirmed entry should insert the evaluated environment
variable rather than the environment variable itself. For example, if you
confirm $SHELL
, it might insert /bin/bash
.
Default: true
Whether to show documentation window which contains value of environment variable selected.
Default: cmp.lsp.CompletionItemKind.Variable
CompletionItemKind
shown in completion menu.