local follow_main = false if follow_main then vim.g.lazyvim_blink_main = true end return { { "giuxtaposition/blink-cmp-copilot", enabled = false }, { "saghen/blink.compat", -- version = '*', lazy = true, opts = {}, }, { "saghen/blink.cmp", -- opts_extend = {"sources"}, dependencies = { "f3fora/cmp-spell", }, opts = { sources = { -- default = { "lsp", "snippets", "path", "markdown", "lazydev", "buffer" }, -- compat = { "spell" }, default = { "lsp", "snippets", "path", "lazydev", "buffer", "orgmode" }, -- default = function() -- if vim.bo.filetype == "org" then -- return { "orgmode", "snippets", path, } -- end -- return { "lsp", "snippets", "path", "lazydev", "buffer", "orgmode" } -- end, providers = { -- markdown = { name = "RenderMarkdown", module = "render-markdown.integ.blink" }, orgmode = { name = "Orgmode", module = "orgmode.org.autocompletion.blink", }, spell = { name = "spell", module = "blink.compat.source", opts = { preselect_correct_word = false, }, }, }, }, appearance = { nerd_font_variant = "mono", }, completion = { list = { selection = { preselect = false, auto_insert = false }, }, -- enabled_providers = function() -- if vim.bo.filetype == "org" then -- return { "orgmode" } -- end -- return { "lsp", "snippets", "path", "lazydev", "buffer" } -- end, accept = { -- experimental auto-brackets support auto_brackets = { enabled = true, }, }, -- menu = { border = "single" }, 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, -- show_without_selection = 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 -- [""] = { "hide", "show", "fallback" }, -- [""] = { "snippet_forward", "show", "fallback" }, preset = "none", [""] = { "accept", "fallback" }, [""] = { "select_and_accept", "snippet_forward", "fallback" }, [""] = { "snippet_backward", "fallback" }, [""] = { "select_and_accept", "fallback" }, [""] = { "hide", "fallback" }, [""] = { "snippet_forward", "show" }, [""] = { "show_documentation", "hide_documentation", "fallback" }, [""] = { "scroll_documentation_up", "fallback" }, [""] = { "scroll_documentation_down", "fallback" }, [""] = { "snippet_backward", "fallback" }, [""] = { "select_prev", "fallback" }, [""] = { "select_next", "fallback" }, }, }, }, }