mirror of
https://github.com/mqttr/dotfiles.git
synced 2025-12-15 04:25:50 -06:00
46 lines
1.5 KiB
Lua
46 lines
1.5 KiB
Lua
return {
|
|
'saghen/blink.cmp',
|
|
lazy = false, -- lazy loading handled internally
|
|
-- optional: provides snippets for the snippet source
|
|
dependencies = 'rafamadriz/friendly-snippets',
|
|
-- use a release tag to download pre-built binaries
|
|
version = 'v0.*',
|
|
-- OR build from source, requires nightly: https://rust-lang.github.io/rustup/concepts/channels.html#working-with-nightly-rust
|
|
-- build = 'cargo build --release',
|
|
opts = {
|
|
keymap = { preset = 'super-tab' },
|
|
|
|
completion = {
|
|
menu = {
|
|
-- min_width = 30,
|
|
-- max_width = 50,
|
|
-- max_height = 20,
|
|
border = 'rounded', -- Rounded corners for a fancy look
|
|
winblend = 10, -- Slight transparency for a modern look
|
|
winhighlight = 'Normal:BlinkCmpMenu,FloatBorder:BlinkCmpMenuBorder,CursorLine:BlinkCmpMenuSelection,Search:None',
|
|
scrolloff = 2,
|
|
},
|
|
|
|
documentation = {
|
|
auto_show = true,
|
|
window = {
|
|
border = 'rounded',
|
|
winblend = 10,
|
|
winhighlight = 'Normal:BlinkCmpDoc,FloatBorder:BlinkCmpDocBorder,CursorLine:BlinkCmpDocCursorLine,Search:None',
|
|
},
|
|
},
|
|
ghost_text = { enabled = true },
|
|
accept = { auto_brackets = { enabled = true } },
|
|
-- signature = {
|
|
-- enabled = true,
|
|
-- }
|
|
},
|
|
},
|
|
-- set to 'mono' for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
|
|
-- adjusts spacing to ensure icons are aligned
|
|
appearance = {
|
|
use_nvim_cmp_as_default = true,
|
|
nerd_font_variant = 'mono',
|
|
},
|
|
}
|