From cc2d3b770aee495adbe89999f424454fa9c941d3 Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Sun, 2 Mar 2025 22:34:07 +0100 Subject: [PATCH] added cmdline history --- lua/plugins/blink.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lua/plugins/blink.lua b/lua/plugins/blink.lua index ea32ea1..b802cb6 100644 --- a/lua/plugins/blink.lua +++ b/lua/plugins/blink.lua @@ -13,6 +13,7 @@ return { -- `kind` is not set, so the default value is "Copilot" } }, + 'dmitmel/cmp-cmdline-history', 'folke/lazydev.nvim', 'L3MON4D3/LuaSnip', { @@ -112,6 +113,10 @@ return { module = 'blink.compat.source', async = true }, + cmdline_history = { + name = 'cmdline_history', + module = 'blink.compat.source', + } }, }, @@ -121,7 +126,7 @@ return { -- Search forward and backward if type == '/' or type == '?' then return { 'buffer' } end -- Commands - if type == ':' or type == '@' then return { 'cmdline', 'buffer' } end + if type == ':' or type == '@' then return { 'cmdline', 'buffer', 'cmdline_history' } end return {} end, completion = {