bs blink/cmp

This commit is contained in:
Christian Nieves
2025-04-01 19:08:23 +00:00
parent d261f8b3bd
commit e588888143
5 changed files with 19 additions and 150 deletions

View File

@ -1,5 +1,6 @@
local use_google = require("utils").use_google
local flags = require("utils").flags
local kind_icons = {
-- LLM Provider icons
claude = "󰋦",
@ -17,6 +18,7 @@ local kind_icons = {
return {
{
"milanglacier/minuet-ai.nvim",
cond = not use_google(),
config = function()
require("minuet").setup({
provider = "gemini",
@ -66,8 +68,8 @@ return {
version = "*",
-- lazy.nvim will automatically load the plugin when it's required by blink.cmp
lazy = true,
cond = flags.blink,
-- make sure to set opts so that lazy.nvim calls blink.compat's setup
cond = flags.blink,
opts = {
impersonate_nvim_cmp = true,
debug = true,
@ -88,6 +90,7 @@ return {
version = "v0.*", -- use a release tag to download pre-built binaries
-- build = 'cargo build --release',
---@module 'blink.cmp'
---@type blink.cmp.Config
opts = {
@ -125,7 +128,6 @@ return {
}
if use_google() then
table.insert(providerToEnable, "nvim_ciderlsp")
table.insert(providerToEnable, "buganizer")
else
table.insert(providerToEnable, "minuet")
end
@ -178,10 +180,6 @@ return {
module = "blink.compat.source",
score_offset = 100,
},
buganizer = {
name = "nvim_buganizer",
module = "blink.compat.source",
},
},
},
-- experimental signature help support

View File

@ -222,7 +222,7 @@ return {
},
cmd = { "ImpSuggest", "ImpFirst" },
keys = {
{ "<leader>i", ":ImpSuggest <C-r><C-w><cr>" },
{ "<leader>I", ":ImpSuggest <C-r><C-w><cr>" },
},
}),
{

View File

@ -1,6 +1,16 @@
local use_google = require("utils").use_google
local flags = require("utils").flags
local function add_import()
vim.lsp.buf.code_action({
apply = true,
context = {
only = { "quickfix.addImports" },
},
})
end
return {
{
"kosayoda/nvim-lightbulb",
@ -69,6 +79,7 @@ return {
},
keys = {
{ "<leader>F", ":lua vim.lsp.buf.format()<CR>" },
{ "<leader>i", add_import },
{ "<leader>rn", ":lua vim.lsp.buf.rename()<CR>" },
{ "L", ":lua vim.lsp.buf.hover()<CR>" },
{ "gr", ":Telescope lsp_references<CR>" },