AutoYADM commit: 2024-12-13 16:45:02
This commit is contained in:
parent
25396da2b6
commit
011bb03b52
2 changed files with 46 additions and 36 deletions
|
@ -4,6 +4,7 @@
|
||||||
local opt = vim.opt
|
local opt = vim.opt
|
||||||
opt.scrolloff = 0
|
opt.scrolloff = 0
|
||||||
|
|
||||||
|
vim.g.ai_cmp = false
|
||||||
vim.g.snacks_animate = false
|
vim.g.snacks_animate = false
|
||||||
opt.spell = true
|
opt.spell = true
|
||||||
opt.wrap = true
|
opt.wrap = true
|
||||||
|
|
|
@ -4,45 +4,54 @@ if follow_main then
|
||||||
end
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"saghen/blink.cmp",
|
-- { "giuxtaposition/blink-cmp-copilot", enabled = false },
|
||||||
---@module 'blink.cmp'
|
{
|
||||||
---@type blink.cmp.Config
|
"saghen/blink.cmp",
|
||||||
opts = {
|
---@module 'blink.cmp'
|
||||||
appearance = {
|
---@type blink.cmp.Config
|
||||||
nerd_font_variant = "mono",
|
opts = {
|
||||||
},
|
appearance = {
|
||||||
completion = {
|
nerd_font_variant = "mono",
|
||||||
accept = {
|
},
|
||||||
-- experimental auto-brackets support
|
completion = {
|
||||||
auto_brackets = {
|
accept = {
|
||||||
enabled = true,
|
-- 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 = {
|
keymap = {
|
||||||
preset = "default",
|
preset = "default",
|
||||||
-- ["<Tab>"] = {
|
-- ["<Tab>"] = {
|
||||||
-- LazyVim.cmp.map({ "snippet_forward", "ai_accept" }),
|
-- LazyVim.cmp.map({ "snippet_forward", "ai_accept" }),
|
||||||
-- "fallback",
|
-- "fallback",
|
||||||
-- },
|
-- },
|
||||||
["<C-Cr>"] = { "select_and_accept", "fallback" },
|
["<C-Cr>"] = { "select_and_accept", "fallback" },
|
||||||
["<C-l>"] = { "select_prev" },
|
["<C-l>"] = { "select_prev" },
|
||||||
["<C-h>"] = { "select_next" },
|
["<C-h>"] = { "select_next" },
|
||||||
["<C-L>"] = { "scroll_documentation_up" },
|
["<C-L>"] = { "scroll_documentation_up" },
|
||||||
["<C-H>"] = { "scroll_documentation_down" },
|
["<C-H>"] = { "scroll_documentation_down" },
|
||||||
|
["<Up>"] = { "fallback" },
|
||||||
|
["<Down>"] = { "fallback" },
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue