This commit is contained in:
Belal Elsabbagh
2025-05-13 12:42:34 +03:00
parent b9a5836cc4
commit f7e10dcac9

View File

@@ -23,13 +23,13 @@ return {
-- C-k: Toggle signature help
--
-- See the full "keymap" documentation for information on defining your own keymap.
keymap = { preset = 'default', ['C-space'] = {} },
keymap = { preset = 'default', ['<C-h>'] = { 'show', 'show_documentation', 'hide_documentation' } },
appearance = {
-- Sets the fallback highlight groups to nvim-cmp's highlight groups
-- Useful for when your theme doesn't support blink.cmp
-- Will be removed in a future release
use_nvim_cmp_as_default = true,
use_nvim_cmp_as_default = false,
-- Set to 'mono' for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
-- Adjusts spacing to ensure icons are aligned
nerd_font_variant = 'mono',
@@ -47,6 +47,27 @@ return {
--
-- See the fuzzy documentation for more information
fuzzy = { implementation = 'prefer_rust_with_warning' },
completion = {
accept = {
-- experimental auto-brackets support
auto_brackets = {
enabled = true,
},
},
menu = {
draw = {
treesitter = { 'lsp' },
},
},
documentation = {
auto_show = true,
auto_show_delay_ms = 200,
},
ghost_text = {
enabled = vim.g.ai_cmp,
},
},
},
opts_extend = { 'sources.default' },
}