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-nvim-lsp",
|
||||||
"hrsh7th/cmp-cmdline",
|
"hrsh7th/cmp-cmdline",
|
||||||
"hrsh7th/cmp-emoji",
|
"hrsh7th/cmp-emoji",
|
||||||
|
"amarakon/nvim-cmp-lua-latex-symbols",
|
||||||
{
|
{
|
||||||
"petertriho/cmp-git",
|
"petertriho/cmp-git",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
@ -118,15 +119,13 @@ return {
|
|||||||
local standard_sources = function(sources)
|
local standard_sources = function(sources)
|
||||||
sources = sources or {}
|
sources = sources or {}
|
||||||
local default_sources = {
|
local default_sources = {
|
||||||
{ name = "nvim_lsp", priority = 11 },
|
{ name = "nvim_lsp", },
|
||||||
{ name = "luasnip", priority = 10 }, -- For luasnip users.
|
{ name = "luasnip", }, -- For luasnip users.
|
||||||
{
|
{
|
||||||
name = "fuzzy_buffer",
|
name = "fuzzy_buffer",
|
||||||
priority = 8,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name = "rg",
|
name = "rg",
|
||||||
priority = 7,
|
|
||||||
keyword_length = 3,
|
keyword_length = 3,
|
||||||
max_item_count = 10,
|
max_item_count = 10,
|
||||||
option = {
|
option = {
|
||||||
@ -135,8 +134,13 @@ return {
|
|||||||
"--max-depth 4",
|
"--max-depth 4",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ name = "async_path", priority = 6 },
|
{ name = "async_path" },
|
||||||
{ name = "zsh", priority = 5 },
|
{
|
||||||
|
name = "lua-latex-symbols",
|
||||||
|
option = { cache = true },
|
||||||
|
trigger_characters = { "\\" },
|
||||||
|
},
|
||||||
|
{ name = "zsh", },
|
||||||
{ name = "emoji", keyword_length = 2 },
|
{ name = "emoji", keyword_length = 2 },
|
||||||
{ name = "calc" },
|
{ name = "calc" },
|
||||||
{ name = "npm", keyword_length = 2 },
|
{ name = "npm", keyword_length = 2 },
|
||||||
@ -168,6 +172,7 @@ return {
|
|||||||
git = { symbol = " ", name = "Git", hl_group = "Git" },
|
git = { symbol = " ", name = "Git", hl_group = "Git" },
|
||||||
docker_compose_language_service = { symbol = " ", name = "Docker", hl_group = "Docker" },
|
docker_compose_language_service = { symbol = " ", name = "Docker", hl_group = "Docker" },
|
||||||
luasnip = { symbol = " ", name = "Snippet" },
|
luasnip = { symbol = " ", name = "Snippet" },
|
||||||
|
["lua-latex-symbols"] = { symbol = " ", name = "Math", hl_group = "LuaLatexSymbol" }
|
||||||
}
|
}
|
||||||
|
|
||||||
local extra_kind_icons = {
|
local extra_kind_icons = {
|
||||||
|
@ -147,6 +147,7 @@ return {
|
|||||||
CmpCustomSelectionNpm = { fg = colors.fujiWhite, bg = colors.peachRed },
|
CmpCustomSelectionNpm = { fg = colors.fujiWhite, bg = colors.peachRed },
|
||||||
CmpCustomSelectionCommit = { fg = colors.fujiWhite, bg = colors.peachRed },
|
CmpCustomSelectionCommit = { fg = colors.fujiWhite, bg = colors.peachRed },
|
||||||
CmpCustomSelectionSnippet = { fg = colors.fujiWhite, bg = colors.peachRed },
|
CmpCustomSelectionSnippet = { fg = colors.fujiWhite, bg = colors.peachRed },
|
||||||
|
CmpCustomSelectionLuaLatexSymbol = { fg = colors.fujiWhite, bg = colors.surimiOrange },
|
||||||
TelescopeNormal = { bg = colors.sumiInk2 },
|
TelescopeNormal = { bg = colors.sumiInk2 },
|
||||||
TelescopeBorder = { bg = colors.sumiInk2, fg = colors.sumiInk1 },
|
TelescopeBorder = { bg = colors.sumiInk2, fg = colors.sumiInk1 },
|
||||||
TelescopePromptBorder = { bg = colors.sumiInk0, fg = colors.sumiInk0 },
|
TelescopePromptBorder = { bg = colors.sumiInk0, fg = colors.sumiInk0 },
|
||||||
|
Loading…
Reference in New Issue
Block a user