1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
return {
{
"blink.cmp",
event = { "InsertEnter", "CmdlineEnter" },
for_cat = "core.completion",
load = function(name)
require("lzextras").loaders.multi({
name,
-- "blink-ripgrep.nvim",
"friendly-snippets",
})
end,
after = function(_)
require("blink.cmp").setup({
keymap = { preset = "default" },
appearance = { nerd_font_variant = "mono" },
signature = { enabled = false },
completion = {
documentation = {
auto_show = false,
},
menu = {
draw = {
columns = {
{ "label", "label_description", gap = 1 },
{ "kind_icon", "kind", gap = 1 },
},
treesitter = { "lsp" },
},
},
},
sources = {
default = { "lsp", "path", "snippets", "buffer", "cmdline", "omni" },
providers = {
path = {
score_offset = 25,
},
lsp = {
fallbacks = {},
score_offset = 20,
},
snippets = {
score_offset = 20,
},
buffer = {
score_offset = 5,
},
-- ripgrep = {
-- module = "blink-ripgrep",
-- name = "Ripgrep",
-- opts = {
-- project_root_marker = { ".git", "flake.nix", "flake.lock" },
-- backend = {
-- use = "gitgrep-or-ripgrep",
-- customize_icon_highlight = false,
-- },
-- },
-- },
},
},
fuzzy = { implementation = "prefer_rust_with_warning" },
})
end,
},
}
|