https://github.com/antznin/cmp-bitbake-path
nvim-cmp source for files in SRC_URI
https://github.com/antznin/cmp-bitbake-path
Last synced: about 1 year ago
JSON representation
nvim-cmp source for files in SRC_URI
- Host: GitHub
- URL: https://github.com/antznin/cmp-bitbake-path
- Owner: antznin
- License: mit
- Created: 2022-11-06T18:05:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-16T02:22:39.000Z (over 2 years ago)
- Last Synced: 2025-03-25T14:06:32.369Z (over 1 year ago)
- Language: Lua
- Size: 3.91 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:

> Heavily based off [`hrsh7th/cmp-path`](https://github.com/hrsh7th/cmp-path).
# Install
Install with [`packer`](https://github.com/wbthomason/packer.nvim):
```lua
use 'antznin/cmp-bitbake-path'
```
# Setup
```lua
require'cmp'.setup {
sources = {
{ name = 'bitbake_path' }
}
}
```
# Configuration
The below source configuration options are available. To set any of
these options, do:
```lua
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.