-- Blink.cmp configuration -- Autocompletion plugin with multiple sources return { "saghen/blink.cmp", dependencies = { "Kaiser-Yang/blink-cmp-git", "Kaiser-Yang/blink-cmp-dictionary", "joelazar/blink-calc", }, opts = { keymap = { [""] = { "accept", "fallback" }, [""] = { "hide", "fallback" }, [""] = { "select_and_accept" }, }, completion = { list = { selection = { preselect = false, auto_insert = false } }, }, sources = { default = { "git", "calc" }, per_filetype = { markdown = { inherit_defaults = true, "dictionary" }, gitcommit = { inherit_defaults = true, "dictionary" }, text = { inherit_defaults = true, "dictionary" }, }, providers = { calc = { name = "Calc", module = "blink-calc", opts = { currency_rates = "er-api", }, }, git = { module = "blink-cmp-git", name = "Git", enabled = function() return vim.tbl_contains({ "gitcommit", "markdown", "octo" }, vim.bo.filetype) end, opts = {}, }, dictionary = { module = "blink-cmp-dictionary", name = "Dict", min_keyword_length = 3, max_items = 10, opts = { dictionary_files = { vim.fn.expand("~/.config/dict/words.txt") }, }, }, }, }, }, }