local follow_main = false if follow_main then vim.g.lazyvim_blink_main = true end return { { "giuxtaposition/blink-cmp-copilot", enabled = false }, { "saghen/blink.cmp", dependencies = { "mikavilpas/blink-ripgrep.nvim", }, -- opts_extend = {"sources"}, opts = { sources = { default = { "lsp", "snippets", "path", "markdown", "lazydev", "buffer" }, providers = { markdown = { name = "RenderMarkdown", module = "render-markdown.integ.blink" }, ripgrep = { module = "blink-ripgrep", name = "Ripgrep", }, }, }, appearance = { nerd_font_variant = "mono", }, completion = { list = { selection = "manual", }, accept = { -- experimental auto-brackets support auto_brackets = { enabled = true, }, }, menu = { border = "single" }, -- menu = { -- draw = { -- treesitter = true, -- }, -- }, documentation = { auto_show = true, auto_show_delay_ms = 200, treesitter_highlighting = true, window = { border = "single", -- winhighlight = require("ashen.plugins.blink").winhighlight, -- winhighlight = "Normal:BlinkCmpDoc,FloatBorder:BlinkCmpDocBorder,CursorLine:BlinkCmpDocCursorLine,Search:None", }, }, ghost_text = { enabled = true, }, }, signature = { enabled = false, }, keymap = { -- Available commands: -- show, hide, cancel, accept, select_and_accept, select_prev, select_next, show_documentation, hide_documentation, -- scroll_documentation_up, scroll_documentation_down, snippet_forward, snippet_backward, fallback preset = "none", [""] = { "accept", "fallback" }, [""] = { "select_and_accept", "fallback" }, [""] = { "select_and_accept", "fallback" }, [""] = { "hide", "show" }, [""] = { "show_documentation", "hide_documentation" }, [""] = { "scroll_documentation_up" }, [""] = { "scroll_documentation_down" }, [""] = { "snippet_forward" }, [""] = { "snippet_backward" }, [""] = { "select_prev", "fallback" }, [""] = { "select_next", "fallback" }, [""] = { function() -- invoke manually, requires blink >v0.8.0 require("blink-cmp").show({ sources = { "ripgrep" } }) end, }, }, }, }, }