Something went wrong. Try again.
Personal Neovim Setup
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081return { { "saghen/blink.cmp", event = "LspAttach", version = "1.*", dependencies = { "rafamadriz/friendly-snippets", { "folke/lazydev.nvim", ft = "lua", opts = { library = { { path = "${3rd}/luv/library", words = { "vim%.uv" }, }, }, }, },
-- add blink.compat { "saghen/blink.compat", -- use v2.* for blink.cmp v1.* version = "2.*", -- lazy.nvim will automatically load the plugin when it's required by blink.cmp lazy = true, -- make sure to set opts so that lazy.nvim calls blink.compat's setup opts = {}, }, }, ---@module 'blink.cmp' ---@type blink.cmp.Config opts = { keymap = { -- reference https://cmp.saghen.dev/configuration/keymap.html#keymap preset = "default", ["<Tab>"] = { "select_next", "fallback" }, ["<S-Tab>"] = { "select_prev", "fallback" }, ["<CR>"] = { "accept", "fallback" }, ["<C-e>"] = { "hide" }, },
appearance = { nerd_font_variant = "mono", },
completion = { documentation = { auto_show = true }, },
fuzzy = { implementation = "prefer_rust_with_warning", },
sources = { default = { -- lsp "lsp", "lazydev", "path",
-- snippets "snippets",
-- buffer "buffer", },
providers = { lazydev = { name = "lazydev", module = "lazydev.integrations.blink", }, }, }, }, opts_extend = { "sources.default" }, },}