Cleanup in blink config

This commit is contained in:
Dreaded_X 2025-05-31 05:09:16 +02:00
parent 1c42119291
commit 525e9099e4
Signed by: Dreaded_X
GPG Key ID: 5A0CBFE3C3377FAA

View File

@ -3,7 +3,6 @@
--- @type LazySpec --- @type LazySpec
return { return {
"saghen/blink.cmp", "saghen/blink.cmp",
-- optional: provides snippets for the snippet source
dependencies = { "rafamadriz/friendly-snippets" }, dependencies = { "rafamadriz/friendly-snippets" },
event = "InsertEnter", event = "InsertEnter",
@ -13,8 +12,6 @@ return {
--- @module "blink-cmp" --- @module "blink-cmp"
--- @type blink.cmp.Config --- @type blink.cmp.Config
opts = { opts = {
-- See :h blink-cmp-config-keymap for defining your own keymap
-- keymap = { preset = "default" },
keymap = { keymap = {
preset = "default", preset = "default",
["<C-space>"] = { "show", "show_documentation", "hide_documentation" }, ["<C-space>"] = { "show", "show_documentation", "hide_documentation" },
@ -43,17 +40,13 @@ return {
["<C-p>"] = { "select_prev", "fallback_to_mappings" }, ["<C-p>"] = { "select_prev", "fallback_to_mappings" },
["<C-n>"] = { "select_next", "fallback_to_mappings" }, ["<C-n>"] = { "select_next", "fallback_to_mappings" },
-- TODO: Does not appear to work?
["<C-k>"] = { "show_signature", "hide_signature", "fallback" }, ["<C-k>"] = { "show_signature", "hide_signature", "fallback" },
}, },
appearance = { appearance = {
-- 'mono' (default) for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
-- Adjusts spacing to ensure icons are aligned
nerd_font_variant = "mono", nerd_font_variant = "mono",
}, },
-- (Default) Only show the documentation popup when manually triggered
completion = { completion = {
ghost_text = { ghost_text = {
enabled = true, enabled = true,
@ -61,9 +54,6 @@ return {
list = { list = {
selection = { selection = {
preselect = false, preselect = false,
-- preselect = function(ctx)
-- return vim.bo.filetype ~= "markdown"
-- end,
}, },
}, },
documentation = { documentation = {
@ -98,8 +88,6 @@ return {
}, },
}, },
-- Default list of enabled providers defined so that you can extend it
-- elsewhere in your config, without redefining it, due to `opts_extend`
sources = { sources = {
default = { default = {
"lazydev", "lazydev",
@ -112,7 +100,6 @@ return {
lazydev = { lazydev = {
name = "LazyDev", name = "LazyDev",
module = "lazydev.integrations.blink", module = "lazydev.integrations.blink",
-- make lazydev completions top priority (see `:h blink.cmp`)
score_offset = 100, score_offset = 100,
}, },
}, },
@ -122,11 +109,6 @@ return {
enabled = false, enabled = false,
}, },
-- (Default) Rust fuzzy matcher for typo resistance and significantly better performance
-- You may use a lua implementation instead by using `implementation = "lua"` or fallback to the lua implementation,
-- when the Rust fuzzy matcher is not available, by using `implementation = "prefer_rust"`
--
-- See the fuzzy documentation for more information
fuzzy = { implementation = "prefer_rust_with_warning" }, fuzzy = { implementation = "prefer_rust_with_warning" },
}, },
opts_extend = { "sources.default" }, opts_extend = { "sources.default" },