nvim: Change cmp results order and icons

Made lsp and LaTeX icons a little less obnoxious,
and fixed order to better load more pertinent results.
This commit is contained in:
Marty Oehme 2024-06-06 10:12:24 +02:00
parent 434974284a
commit 7fd32f873a
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -42,11 +42,6 @@ cmp.setup({
end, end,
}, },
sources = { sources = {
{ name = "nvim_lsp" },
{ name = "nvim_lsp_signature_help" },
{ name = "otter" },
{ name = "luasnip", keyword_length = 2 },
{ name = "pandoc_references" },
{ name = "nvim_lua" }, { name = "nvim_lua" },
{ {
name = "beancount", name = "beancount",
@ -54,6 +49,11 @@ cmp.setup({
account = vim.env["HOME"] .. "/documents/records/budget/main.beancount", -- TODO implement dynamically account = vim.env["HOME"] .. "/documents/records/budget/main.beancount", -- TODO implement dynamically
}, },
}, },
{ name = "otter" },
{ name = "nvim_lsp" },
{ name = "nvim_lsp_signature_help" },
{ name = "luasnip", keyword_length = 2 },
{ name = "pandoc_references" },
{ name = "calc" }, { name = "calc" },
{ name = "path" }, { name = "path" },
{ name = "buffer", keyword_length = 3 }, { name = "buffer", keyword_length = 3 },
@ -61,7 +61,7 @@ cmp.setup({
{ name = "spell", keyword_length = 3 }, { name = "spell", keyword_length = 3 },
{ name = "tmux" }, -- { name = 'rg', keyword_length = 5 }, { name = "tmux" }, -- { name = 'rg', keyword_length = 5 },
{ name = "vCard" }, { name = "vCard" },
{ name = "digraphs" }, { name = "digraphs", keyword_length = 2 },
}, },
mapping = cmp.mapping.preset.insert({ mapping = cmp.mapping.preset.insert({
["<C-b>"] = cmp.mapping.scroll_docs(-4), ["<C-b>"] = cmp.mapping.scroll_docs(-4),
@ -117,10 +117,10 @@ cmp.setup({
vim_item.menu = ({ vim_item.menu = ({
buffer = "", buffer = "",
calc = "󰃬", calc = "󰃬",
digraphs = "", digraphs = "",
latex_symbols = "󰊄", latex_symbols = "𝓧",
luasnip = "", luasnip = "",
nvim_lsp = "", nvim_lsp = "",
nvim_lua = "󰢱", nvim_lua = "󰢱",
pandoc_references = "", pandoc_references = "",
spell = "󰓆", spell = "󰓆",