Skip to content

bydlw98/cmp-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmp-env

nvim-cmp source for environment variables.

Setup

require("cmp").setup {
    sources = {
        { name = "env" }
    }
}

Configuration

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
            },
        },
    },
})

eval_on_confirm (type: boolean)

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.

show_documentation_window (type: boolean)

Default: true

Whether to show documentation window which contains value of environment variable selected.

item_kind (type: number)

Default: cmp.lsp.CompletionItemKind.Variable

CompletionItemKind shown in completion menu.

About

nvim-cmp source for environment variables.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published