Compare commits

..

No commits in common. "33e289b148ac0df4930a990afe8ee591737212be" and "ad93d9dfaef7f7efcd71b605c8dce985dbea6930" have entirely different histories.

2 changed files with 21 additions and 13 deletions

View File

@ -64,6 +64,7 @@ in {
fira-code
nerdfonts
direnv
passage
swappy
stylua
typstfmt
@ -71,10 +72,6 @@ in {
hurl
easyeffects
egl-wayland
] ++ [
age
age-plugin-yubikey
passage
] ++ [
libsForQt5.qtstyleplugins
libsForQt5.qtcurve

View File

@ -120,29 +120,28 @@ return {
sources = sources or {}
local default_sources = {
{ name = "nvim_lsp" },
{ name = "luasnip", max_item_count = 5 }, -- For luasnip users.
{ name = "async_path" },
{ name = "luasnip" }, -- For luasnip users.
{
name = "fuzzy_buffer",
max_item_count = 5
},
{
name = "rg",
keyword_length = 3,
max_item_count = 5,
max_item_count = 10,
option = {
"--smart-case",
"--hidden",
"--max-depth 4",
},
},
{ name = "async_path" },
{
name = "lua-latex-symbols",
option = { cache = true },
trigger_characters = { "\\" },
},
{ name = "zsh", max_item_count = 5 },
{ name = "emoji", keyword_length = 2, max_item_count = 10 },
{ name = "zsh" },
{ name = "emoji", keyword_length = 2 },
{ name = "calc" },
{ name = "npm", keyword_length = 2 },
}
@ -401,12 +400,23 @@ return {
-- Use buffer source for `/` (if you enabled `native_menu`, this won't work anymore).
cmp.setup.cmdline("/", {
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({ name = "fuzzy_buffer" }),
sources = cmp.config.sources({
{ name = "fuzzy_buffer" },
{ name = "rg" },
}),
})
cmp.setup.cmdline("?", {
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({ name = "fuzzy_buffer" }),
sources = cmp.config.sources({ { name = "rg" } }),
})
cmp.setup.cmdline("@", {
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({
{ name = "rg" },
{ name = "cmdline_history", max_item_count = 3 },
}),
})
-- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
@ -420,7 +430,8 @@ return {
},
},
{ name = "cmdline_history", max_item_count = 3 },
{ name = "fuzzy_buffer", max_item_count = 3 },
{ name = "fuzzy_buffer" },
{ name = "rg" },
}),
})
end,