Go to file
2022-07-26 11:32:16 +02:00
after/plugin Initial commit 2021-08-03 23:51:11 +09:00
lua/cmp_path reverted 1 commit + trailing space makes new path 2022-07-26 11:32:16 +02:00
LICENSE Create LICENSE 2021-11-10 20:30:12 +09:00
README.md Improve space handling 2022-07-26 16:43:06 +09:00

cmp-path

nvim-cmp source for filesystem paths.

Setup

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

Configuration

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

cmp.setup({
  sources = {
    {
      name = '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.

get_cwd (type: function)

Default: returns the current working directory of the current buffer

Specifies the base directory for relative paths.

allow_space (type: boolean)

Default: false

Specifies the pathname regex should contain the space character.