AutoYADM commit: 2024-12-13 16:45:02

This commit is contained in:
Daniel Fichtinger 2024-12-13 16:45:02 -05:00
parent 25396da2b6
commit 011bb03b52
2 changed files with 46 additions and 36 deletions

View file

@ -4,6 +4,7 @@
local opt = vim.opt
opt.scrolloff = 0
vim.g.ai_cmp = false
vim.g.snacks_animate = false
opt.spell = true
opt.wrap = true

View file

@ -4,45 +4,54 @@ if follow_main then
end
return {
"saghen/blink.cmp",
---@module 'blink.cmp'
---@type blink.cmp.Config
opts = {
appearance = {
nerd_font_variant = "mono",
},
completion = {
accept = {
-- experimental auto-brackets support
auto_brackets = {
enabled = true,
-- { "giuxtaposition/blink-cmp-copilot", enabled = false },
{
"saghen/blink.cmp",
---@module 'blink.cmp'
---@type blink.cmp.Config
opts = {
appearance = {
nerd_font_variant = "mono",
},
completion = {
accept = {
-- 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 = {
preset = "default",
-- ["<Tab>"] = {
-- LazyVim.cmp.map({ "snippet_forward", "ai_accept" }),
-- "fallback",
-- },
["<C-Cr>"] = { "select_and_accept", "fallback" },
["<C-l>"] = { "select_prev" },
["<C-h>"] = { "select_next" },
["<C-L>"] = { "scroll_documentation_up" },
["<C-H>"] = { "scroll_documentation_down" },
keymap = {
preset = "default",
-- ["<Tab>"] = {
-- LazyVim.cmp.map({ "snippet_forward", "ai_accept" }),
-- "fallback",
-- },
["<C-Cr>"] = { "select_and_accept", "fallback" },
["<C-l>"] = { "select_prev" },
["<C-h>"] = { "select_next" },
["<C-L>"] = { "scroll_documentation_up" },
["<C-H>"] = { "scroll_documentation_down" },
["<Up>"] = { "fallback" },
["<Down>"] = { "fallback" },
},
},
},
}