feat(nvim): add pi.nvim completion source to blink.cmp

Integrate pi-agent as a blink.cmp completion source (score_offset=100)
for LSP-style completions inside pi-chat-prompt buffers. Add the
pi.nvim plugin with a toggle keymap and --approve mode.
This commit is contained in:
2026-07-27 10:30:39 -04:00
parent 79b2dd599e
commit 7a3a5b1632
2 changed files with 19 additions and 2 deletions
+10 -2
View File
@@ -54,11 +54,19 @@ require('blink.cmp').setup({
signature = { enabled = true },
sources = {
per_filetype = {
org = {'orgmode'}
["org"] = {'orgmode'},
["pi-chat-prompt"] = { "pi" },
},
default = { 'orgmode', 'lsp', 'copilot', 'snippets', 'path', 'omni', 'buffer', 'codecompanion', 'markdown' },
default = { 'orgmode', 'lsp', 'copilot', 'snippets', 'path', 'omni', 'buffer', 'codecompanion', 'pi', 'markdown' },
-- default = { 'orgmode', 'lsp', 'snippets', 'path', 'omni', 'buffer', 'codecompanion', 'markdown' },
--
providers = {
pi = {
name = "Pi",
module = "pi.completion.blink",
enabled = true,
score_offset = 100,
},
codecompanion = {
name = "CodeCompanion" ,
module = "codecompanion.providers.completion.blink",