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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user