/blink-cmp-tmux

Completion source using tmux for blink.cmp

Primary LanguageLuaMIT LicenseMIT

blink-cmp-tmux

Port of the andersevenrud/cmp-tmux completion source for the blink.cmp Neovim plugin.

Features

  • Integrates with tmux to provide completion suggestions based on the content of tmux panes.
  • Supports capturing content from all panes or only the current pane.
  • Allows capturing the history of panes for more comprehensive suggestions.
  • Configurable trigger characters to activate completions.

Requirements

Installation & Configuration

Using lazy.nvim

{
  "saghen/blink.cmp",
  dependencies = {
      "mgalliou/blink-cmp-tmux",
  },
  opts = {
    sources = {
      default = {
        --- your other sources
        "tmux",
      },
      providers = {
        tmux = {
          module = "blink-cmp-tmux",
          name = "tmux",
          -- default options
          opts = {
            all_panes = false,
            capture_history = false,
            -- only suggest completions from `tmux` if the `trigger_chars` are
            -- used
            triggered_only = false,
            trigger_chars = { "." }
          },
        },
      }
    }
  }
}

Contributing

Contributions are welcome! Please open an issue or submit a pull request if you have any suggestions, bug reports, or feature requests.

Credits