mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 00:45:17 -06:00
94 lines
2 KiB
Lua
94 lines
2 KiB
Lua
return {
|
|
{
|
|
'saghen/blink.cmp',
|
|
event = 'VeryLazy',
|
|
dependencies = {
|
|
'mikavilpas/blink-ripgrep.nvim',
|
|
'fang2hou/blink-copilot',
|
|
'nvim-orgmode/orgmode',
|
|
},
|
|
opts = {
|
|
fuzzy = {
|
|
sorts = {
|
|
'exact',
|
|
'score',
|
|
'sort_text',
|
|
},
|
|
},
|
|
sources = {
|
|
default = {
|
|
'lsp',
|
|
'path',
|
|
'snippets',
|
|
'omni',
|
|
'ripgrep',
|
|
'copilot',
|
|
},
|
|
per_filetype = {
|
|
org = { 'orgmode' },
|
|
},
|
|
providers = {
|
|
snippets = {
|
|
score_offset = -20,
|
|
},
|
|
ripgrep = {
|
|
module = 'blink-ripgrep',
|
|
name = 'rg',
|
|
score_offset = -30,
|
|
async = true,
|
|
},
|
|
copilot = {
|
|
module = 'blink-copilot',
|
|
name = 'Copilot',
|
|
score_offset = 10,
|
|
async = true,
|
|
opts = {
|
|
max_completions = 2,
|
|
debounce = 500,
|
|
auto_refresh = {
|
|
backward = false,
|
|
forward = true,
|
|
},
|
|
},
|
|
},
|
|
orgmode = {
|
|
name = 'Orgmode',
|
|
module = 'orgmode.org.autocompletion.blink',
|
|
fallbacks = { 'buffer' },
|
|
},
|
|
},
|
|
},
|
|
cmdline = {
|
|
completion = {
|
|
menu = {
|
|
auto_show = true,
|
|
},
|
|
},
|
|
},
|
|
completion = {
|
|
documentation = {
|
|
auto_show = true,
|
|
auto_show_delay_ms = 500,
|
|
},
|
|
menu = {
|
|
draw = {
|
|
treesitter = { 'lsp' },
|
|
columns = {
|
|
{ 'label', 'label_description', gap = 1 },
|
|
{ 'source_name', 'kind', gap = 1 },
|
|
},
|
|
},
|
|
},
|
|
trigger = {
|
|
show_on_keyword = true,
|
|
},
|
|
},
|
|
signature = {
|
|
enabled = true,
|
|
trigger = {
|
|
show_on_insert = true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|