feat(nvim): add lua-latex-symbols for nvim cmp completions

This commit is contained in:
Price Hiller 2024-01-26 16:00:16 -06:00
parent 08817b7add
commit c847748fee
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8
2 changed files with 12 additions and 6 deletions

View File

@ -7,6 +7,7 @@ return {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-cmdline",
"hrsh7th/cmp-emoji",
"amarakon/nvim-cmp-lua-latex-symbols",
{
"petertriho/cmp-git",
dependencies = {
@ -118,15 +119,13 @@ return {
local standard_sources = function(sources)
sources = sources or {}
local default_sources = {
{ name = "nvim_lsp", priority = 11 },
{ name = "luasnip", priority = 10 }, -- For luasnip users.
{ name = "nvim_lsp", },
{ name = "luasnip", }, -- For luasnip users.
{
name = "fuzzy_buffer",
priority = 8,
},
{
name = "rg",
priority = 7,
keyword_length = 3,
max_item_count = 10,
option = {
@ -135,8 +134,13 @@ return {
"--max-depth 4",
},
},
{ name = "async_path", priority = 6 },
{ name = "zsh", priority = 5 },
{ name = "async_path" },
{
name = "lua-latex-symbols",
option = { cache = true },
trigger_characters = { "\\" },
},
{ name = "zsh", },
{ name = "emoji", keyword_length = 2 },
{ name = "calc" },
{ name = "npm", keyword_length = 2 },
@ -168,6 +172,7 @@ return {
git = { symbol = "󰊢 ", name = "Git", hl_group = "Git" },
docker_compose_language_service = { symbol = "󰡨 ", name = "Docker", hl_group = "Docker" },
luasnip = { symbol = "", name = "Snippet" },
["lua-latex-symbols"] = { symbol = "󰡱 ", name = "Math", hl_group = "LuaLatexSymbol" }
}
local extra_kind_icons = {

View File

@ -147,6 +147,7 @@ return {
CmpCustomSelectionNpm = { fg = colors.fujiWhite, bg = colors.peachRed },
CmpCustomSelectionCommit = { fg = colors.fujiWhite, bg = colors.peachRed },
CmpCustomSelectionSnippet = { fg = colors.fujiWhite, bg = colors.peachRed },
CmpCustomSelectionLuaLatexSymbol = { fg = colors.fujiWhite, bg = colors.surimiOrange },
TelescopeNormal = { bg = colors.sumiInk2 },
TelescopeBorder = { bg = colors.sumiInk2, fg = colors.sumiInk1 },
TelescopePromptBorder = { bg = colors.sumiInk0, fg = colors.sumiInk0 },