Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.
/ cmp-async-path Public archive
forked from hrsh7th/cmp-path

nvim-cmp source for path (async version)

License

Notifications You must be signed in to change notification settings

FelipeLema/cmp-async-path

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 

Repository files navigation

https://codeberg.org/FelipeLema/cmp-async-path

cmp-async-path

nvim-cmp source for filesystem paths with async processing (neovim won't block while reading from disk).

forked from https://github.com/hrsh7th/cmp-path/

Setup

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

Configuration

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

cmp.setup({
  sources = {
    {
      name = 'async_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 path (async version)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%