mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 22:22:40 +00:00
30 lines
654 B
Lua
30 lines
654 B
Lua
return {
|
|
"saghen/blink.cmp",
|
|
dependencies = {
|
|
"rafamadriz/friendly-snippets",
|
|
"L3MON4D3/LuaSnip",
|
|
},
|
|
version = "v0.7.6",
|
|
opts = {
|
|
keymap = { preset = "default" },
|
|
snippets = {
|
|
expand = function(snippet)
|
|
require("luasnip").lsp_expand(snippet)
|
|
end,
|
|
active = function(filter)
|
|
if filter and filter.direction then
|
|
return require("luasnip").jumpable(filter.direction)
|
|
end
|
|
return require("luasnip").in_snippet()
|
|
end,
|
|
jump = function(direction)
|
|
require("luasnip").jump(direction)
|
|
end,
|
|
},
|
|
sources = {
|
|
default = { "lsp", "path", "luasnip", "buffer" },
|
|
},
|
|
},
|
|
opts_extend = { "sources.default" },
|
|
}
|