From 011bb03b52f519ab43b2840cb9692238d9585bc6 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Fri, 13 Dec 2024 16:45:02 -0500 Subject: [PATCH] AutoYADM commit: 2024-12-13 16:45:02 --- .config/nvim/lua/config/options.lua | 1 + .config/nvim/lua/plugins/blink.lua | 81 ++++++++++++++++------------- 2 files changed, 46 insertions(+), 36 deletions(-) diff --git a/.config/nvim/lua/config/options.lua b/.config/nvim/lua/config/options.lua index 6bb74205..a78d46d7 100644 --- a/.config/nvim/lua/config/options.lua +++ b/.config/nvim/lua/config/options.lua @@ -4,6 +4,7 @@ local opt = vim.opt opt.scrolloff = 0 +vim.g.ai_cmp = false vim.g.snacks_animate = false opt.spell = true opt.wrap = true diff --git a/.config/nvim/lua/plugins/blink.lua b/.config/nvim/lua/plugins/blink.lua index 08d1cea0..e2725689 100644 --- a/.config/nvim/lua/plugins/blink.lua +++ b/.config/nvim/lua/plugins/blink.lua @@ -4,45 +4,54 @@ if follow_main then end return { - "saghen/blink.cmp", - ---@module 'blink.cmp' - ---@type blink.cmp.Config - opts = { - appearance = { - nerd_font_variant = "mono", - }, - completion = { - accept = { - -- experimental auto-brackets support - auto_brackets = { - enabled = true, + -- { "giuxtaposition/blink-cmp-copilot", enabled = false }, + { + "saghen/blink.cmp", + ---@module 'blink.cmp' + ---@type blink.cmp.Config + opts = { + appearance = { + nerd_font_variant = "mono", + }, + completion = { + accept = { + -- experimental auto-brackets support + auto_brackets = { + enabled = true, + }, + }, + menu = { + draw = { + treesitter = true, + }, + }, + documentation = { + auto_show = true, + auto_show_delay_ms = 200, + treesitter_highlighting = true, + window = { + winhighlight = "Normal:BlinkCmpDoc,FloatBorder:BlinkCmpDocBorder,CursorLine:BlinkCmpDocCursorLine,Search:None", + }, + }, + ghost_text = { + enabled = vim.g.ai_cmp, }, }, - menu = { - draw = { - treesitter = true, - }, - }, - documentation = { - auto_show = true, - auto_show_delay_ms = 200, - }, - ghost_text = { - enabled = vim.g.ai_cmp, - }, - }, - keymap = { - preset = "default", - -- [""] = { - -- LazyVim.cmp.map({ "snippet_forward", "ai_accept" }), - -- "fallback", - -- }, - [""] = { "select_and_accept", "fallback" }, - [""] = { "select_prev" }, - [""] = { "select_next" }, - [""] = { "scroll_documentation_up" }, - [""] = { "scroll_documentation_down" }, + keymap = { + preset = "default", + -- [""] = { + -- LazyVim.cmp.map({ "snippet_forward", "ai_accept" }), + -- "fallback", + -- }, + [""] = { "select_and_accept", "fallback" }, + [""] = { "select_prev" }, + [""] = { "select_next" }, + [""] = { "scroll_documentation_up" }, + [""] = { "scroll_documentation_down" }, + [""] = { "fallback" }, + [""] = { "fallback" }, + }, }, }, }