WezTerm source for nvim-cmp and blink.cmp.
Pulls the visible text of other WezTerm panes (via wezterm cli get-text) and offers the words it finds — file paths from ls, identifiers from a git log, URLs in curl output, etc. — as completions in your buffer.
- Gather completion candidates from other WezTerm panes via
wezterm cli - Filter by current tab / current window (
all_tabs,all_windowsoptions) - Cancellation support — in-flight
wezterm clisubprocesses are SIGTERM'd when the completion list is destroyed (used by blink.cmp; nvim-cmp users get the same protection if they call the cancel fn) - Pane location (
win:tab:id) shown inlabelDetails - Works with both nvim-cmp and blink.cmp
- Neovim v0.10.0
- nvim-cmp or blink.cmp
- WezTerm
{ "delphinus/cmp-wezterm" },require("cmp").setup {
sources = {
{ name = "wezterm" },
},
}{
"saghen/blink.cmp",
dependencies = { "delphinus/cmp-wezterm" },
opts = {
sources = {
default = { "wezterm" },
providers = {
wezterm = {
name = "wezterm",
module = "blink-cmp-wezterm",
-- `wezterm cli list` plus the per-pane `get-text` calls can take
-- tens of milliseconds. Mark the provider async so blink.cmp shows
-- results from cheaper sources (buffer, snippets, etc.) immediately
-- and merges WezTerm candidates in as they arrive.
async = true,
},
},
},
},
}See detail in doc.
- doc
- Capture only the current tab / window.
- Capture history
- Capture workspaces
- Capture clients