terrortylor / cmp-tmux

Tmux completion source for nvim-cmp and nvim-compe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cmp-tmux

Tmux completion source for nvim-cmp.

If you're looking for a nvim-compe version of this extension, use the following branch.

By default this extension uses adjacent panes as sources. See configuration to enable all panes.

Requirements

Installation

Use your package manager of choice. For example packer.nvim:

use {
  'andersevenrud/cmp-tmux'
}

Setup

require('cmp').setup({
  sources = {
    { name = 'tmux' }
  }
})

Configuration

To configure this extension, add an options table (defaults shown):

require('cmp').setup({
  sources = {
    {
      name = 'tmux',
      option = {
        all_panes = false,
        label = '[tmux]',
        trigger_characters = { '.' },
        trigger_characters_ft = {} -- { filetype = { '.' } }
      }
    }
  }
})

License

MIT

About

Tmux completion source for nvim-cmp and nvim-compe

License:MIT License


Languages

Language:Lua 97.4%Language:Vim Script 2.6%