Go to file
2022-06-29 18:17:40 +08:00
after/plugin Initial commit 2021-08-03 23:51:11 +09:00
lua/cmp_path fix: fix an issue caused by #44 2022-06-29 18:17:40 +08:00
LICENSE Create LICENSE 2021-11-10 20:30:12 +09:00
README.md added option to change the base dir for relative paths 2022-02-02 18:34:52 +01: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.