Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 748 Bytes

README.md

File metadata and controls

44 lines (30 loc) · 748 Bytes

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.