Skip to content

A source for nvim-cmp to gather candidates from Universal Ctags

Notifications You must be signed in to change notification settings

delphinus/cmp-ctags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmp-ctags

Universal Ctags source for nvim-cmp.

What's this? (or what is NOT this?)

This is a source for nvim-cmp using Universal Ctags.

Requirements

Installation

With packer.nvim, you can use this with below.

use {
  'delphinus/cmp-ctags'
}

Or you can use any plugin manager.

Configuration

You can set options for this source in calling cmp.setup.

require("cmp").setup {
  sources = {
    {
      name = "ctags",
      -- default values
      option = {
        executable = "ctags",
        trigger_characters = { "." },
        trigger_characters_ft = {},
      },
    },
  },
}

executable

  • Type: string
  • Default: "ctags"

A custom path for Universal Ctags' executable.

trigger_characters

  • Type: string[]
  • Default: { "." }

Characters to start completions.

trigger_characters_ft

  • Type: Table<string, string[]>
  • Default: {}

trigger_characters for each filetypes.

{
  c = { ".", "->" },
  perl = { "->", "::" },
}

It fallbacks to trigger_characters if the filetype of the current buffer is not defined.

About

A source for nvim-cmp to gather candidates from Universal Ctags

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published