From 29415918df0b546923054581be6446fc4c10dba6 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sun, 8 Dec 2024 17:54:01 -0800 Subject: [PATCH] feat: bump version enable intellitab!! --- lua/keymaps.lua | 2 ++ lua/plugins/blink-cmp.lua | 62 +-------------------------------------- 2 files changed, 3 insertions(+), 61 deletions(-) diff --git a/lua/keymaps.lua b/lua/keymaps.lua index f60fc60..f0572c3 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -29,3 +29,5 @@ vim.keymap.set("v", "g", "ggv") vim.keymap.set("v", "g", "ggv") vim.keymap.set("n", "cr", vim.lsp.buf.rename) + +vim.keymap.set("i", "", require("scripts.intellitab").indent) diff --git a/lua/plugins/blink-cmp.lua b/lua/plugins/blink-cmp.lua index 5819646..c25f9fe 100644 --- a/lua/plugins/blink-cmp.lua +++ b/lua/plugins/blink-cmp.lua @@ -6,67 +6,7 @@ return { -- for keymap, all values may be string | string[] -- use an empty table to disable a keymap keymap = { - [""] = { "show", "show_documentation", "hide_documentation" }, - [""] = { "hide" }, - - [""] = { - function(cmp) - if cmp.is_in_snippet() then - return cmp.accept() - else - return cmp.select_and_accept() - end - end, - "snippet_forward", - require("scripts.intellitab").indent, - "fallback", - }, - [""] = { "snippet_backward", "fallback" }, - - [""] = { "select_prev", "fallback" }, - [""] = { "select_next", "fallback" }, - [""] = { "select_prev", "fallback" }, - [""] = { "select_next", "fallback" }, - - [""] = { "scroll_documentation_up", "fallback" }, - [""] = { "scroll_documentation_down", "fallback" }, - }, - - fuzzy = { - -- frencency tracks the most recently/frequently used items and boosts the score of the item - use_frecency = true, - -- proximity bonus boosts the score of items with a value in the buffer - use_proximity = true, - max_items = 200, - - prebuiltBinaries = { - -- Whether or not to automatically download a prebuilt binary from github. If this is set to `false` - -- you will need to manually build the fuzzy binary dependencies by running `cargo build --release` - download = false, - -- When downloading a prebuilt binary force the downloader to resolve this version. If this is uset - -- then the downloader will attempt to infer the version from the checked out git tag (if any). - -- - -- Beware that if the FFI ABI changes while tracking main then this may result in blink breaking. - forceVersion = nil, - }, - }, - - windows = { - documentation = { - min_width = 10, - max_width = 60, - max_height = 20, - border = "padded", - auto_show = true, - auto_show_delay_ms = 500, - update_delay_ms = 100, - }, - signature_help = { - min_width = 1, - max_width = 100, - max_height = 10, - border = "padded", - }, + preset = "default", }, }) end,