feat(nvim): add lua-latex-symbols for nvim cmp completions
This commit is contained in:
parent
08817b7add
commit
c847748fee
@ -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 = {
|
||||
|
@ -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 },
|
||||
|
Loading…
Reference in New Issue
Block a user