Go to file
2023-01-16 16:20:03 -03:00
after/plugin correct source register 2022-12-30 10:25:05 -03:00
lua implement async using luv's thread pool + serialization 2023-01-16 16:19:46 -03:00
LICENSE Create LICENSE 2021-11-10 20:30:12 +09:00
README.md update docs 2023-01-16 16:20:03 -03:00

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.

luatexts

Lua source code for luatexts was embedded. Code originally comes from https://github.com/agladysh/luatexts/