Something went wrong. Try again.
My neovim config
Something went wrong. Try again.
1.5 kB · 54 lines
Lua
at main
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455-- Blink.cmp configuration-- Autocompletion plugin with multiple sourcesreturn { "saghen/blink.cmp", dependencies = { "Kaiser-Yang/blink-cmp-git", "Kaiser-Yang/blink-cmp-dictionary", "joelazar/blink-calc", }, opts = { keymap = { ["<CR>"] = { "accept", "fallback" }, ["<Esc>"] = { "hide", "fallback" }, ["<C-j>"] = { "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") }, }, }, }, }, },}