添加vscode neovim相关配置

This commit is contained in:
a770 2025-05-31 11:38:43 +08:00
parent 59f0ba6a45
commit d1f5f0a2c8
12 changed files with 217 additions and 57 deletions

View file

@ -1,5 +1,6 @@
return {
"saghen/blink.cmp",
enabled = not vim.g.vscode, -- 在vscode-neovim禁用
dependencies = {
"rafamadriz/friendly-snippets",
"Kaiser-Yang/blink-cmp-avante",
@ -49,6 +50,12 @@ return {
documentation = { auto_show = true, auto_show_delay_ms = 500 },
-- 不预选第一个项目,选中后自动插入该项目文本
list = { selection = { preselect = false, auto_insert = true } },
-- 针对菜单的外观配置
-- menu = {
-- min_width = 15,
-- max_height = 10,
-- border = "single", -- Defaults to `vim.o.winborder` on nvim 0.11+
-- },
},
-- 指定文件类型启用/禁用
enabled = function()