Skip to content

antznin/cmp-bitbake-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmp-bitbake-path

nvim-cmp source for filesystem path to include in SRC_URI variables.

For example, assuming you have the following structure:

recipe
├── files
│   ├── 0001.patch
│   └── 0002.patch
└── recipe_1.0.bb

While editing recipe_1.0.bb, completion will be available when writing:

completion

Heavily based off hrsh7th/cmp-path.

Install

Install with packer:

use 'antznin/cmp-bitbake-path'

Setup

require'cmp'.setup {
  sources = {
    { name = 'bitbake_path' }
  }
}

Configuration

The below source configuration options are available. To set any of these options, do:

cmp.setup({
  sources = {
    {
      name = 'bitbake_path',
      option = {
        -- Options go into this table
      },
    },
  },
})

trailing_slash (type: boolean)

Default: false

Specify if completed directory names should include a trailing slash. Enabling this option makes this source behave like Vim's built-in path completion.

label_trailing_slash (type: boolean)

Default: true

Specify if directory names in the completion menu should include a trailing slash.

get_cwd (type: function)

Default: returns the current working directory of the current buffer

Specifies the base directory for relative paths.

About

nvim-cmp source for files in SRC_URI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages