From 7fd32f873a76fbe94842418bc0d485bcd81bd49c Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 6 Jun 2024 10:12:24 +0200 Subject: [PATCH] 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. --- nvim/.config/nvim/lua/plugins/config/cmp.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/nvim/.config/nvim/lua/plugins/config/cmp.lua b/nvim/.config/nvim/lua/plugins/config/cmp.lua index 31db206..49840cc 100644 --- a/nvim/.config/nvim/lua/plugins/config/cmp.lua +++ b/nvim/.config/nvim/lua/plugins/config/cmp.lua @@ -42,11 +42,6 @@ cmp.setup({ end, }, sources = { - { name = "nvim_lsp" }, - { name = "nvim_lsp_signature_help" }, - { name = "otter" }, - { name = "luasnip", keyword_length = 2 }, - { name = "pandoc_references" }, { name = "nvim_lua" }, { name = "beancount", @@ -54,6 +49,11 @@ cmp.setup({ 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 = "path" }, { name = "buffer", keyword_length = 3 }, @@ -61,7 +61,7 @@ cmp.setup({ { name = "spell", keyword_length = 3 }, { name = "tmux" }, -- { name = 'rg', keyword_length = 5 }, { name = "vCard" }, - { name = "digraphs" }, + { name = "digraphs", keyword_length = 2 }, }, mapping = cmp.mapping.preset.insert({ [""] = cmp.mapping.scroll_docs(-4), @@ -117,10 +117,10 @@ cmp.setup({ vim_item.menu = ({ buffer = "", calc = "󰃬", - digraphs = "", - latex_symbols = "󰊄", + digraphs = "∬", + latex_symbols = "𝓧", luasnip = "", - nvim_lsp = "", + nvim_lsp = "ℒ", nvim_lua = "󰢱", pandoc_references = "", spell = "󰓆",