This commit is contained in:
Hunter 2025-05-08 06:57:37 -04:00
parent f5daf0ad68
commit 0e500b7d8f
Signed by: hst
GPG key ID: 951D8B651E7DE6BE
29 changed files with 687 additions and 694 deletions

38
lua/hsta/plugins/cmp.lua Normal file
View file

@ -0,0 +1,38 @@
return {
{
"saghen/blink.cmp",
dependencies = { "rafamadriz/friendly-snippets" },
version = "1.*",
---@module 'blink.cmp'
---@type blink.cmp.Config
opts = {
keymap = { preset = "default" },
appearance = {
nerd_font_variant = "mono",
},
completion = { documentation = { auto_show = true } },
sources = {
default = { "lsp", "path", "snippets", "buffer", "cmdline", "lazydev" },
providers = {
lazydev = {
name = "LazyDev",
module = "lazydev.integrations.blink",
-- make lazydev completions top priority (see `:h blink.cmp`)
score_offset = 100,
},
},
},
cmdline = {
completion = { menu = { auto_show = true } },
},
fuzzy = { implementation = "prefer_rust_with_warning" },
},
opts_extend = { "sources.default" },
},
}