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

View File

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