Skip to content

Commit

Permalink
docs: document new capture_history option
Browse files Browse the repository at this point in the history
  • Loading branch information
pbnj committed Sep 2, 2023
1 parent 801bf05 commit ea0be51
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ require('cmp').setup({

-- Keyword patch mattern
keyword_pattern = [[\w\+]],

-- Capture full pane history
-- `false`: show completion suggestion from text in the visible pane (default)
-- `true`: show completion suggestion from text starting from the beginning of the pane history.
-- This works by passing `-S -` flag to `tmux capture-pane` command. See `man tmux` for details.
capture_history = false,
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion doc/cmp-tmux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ To configure this extension, add an options table (defaults shown):
all_panes = false,
label = '[tmux]',
trigger_characters = { '.' },
trigger_characters_ft = {} -- { filetype = { '.' } }
trigger_characters_ft = {}, -- { filetype = { '.' } },
capture_history = false,
}
}
}
Expand Down

0 comments on commit ea0be51

Please sign in to comment.