fix: update for nerd fonts v3
This commit is contained in:
parent
cd90e87f59
commit
a9692b08c1
@ -12,17 +12,17 @@ cmp.setup({
|
||||
fields = { cmp.ItemField.Kind, cmp.ItemField.Abbr, cmp.ItemField.Menu },
|
||||
format = function(entry, vim_item)
|
||||
local selections = {
|
||||
fuzzy_buffer = { symbol = " ", name = "Buffer", hl_group = "Buffer" },
|
||||
fuzzy_buffer = { symbol = " ", name = "Buffer", hl_group = "Buffer" },
|
||||
calc = { symbol = " ", name = "Calculator", hl_group = "Calculator" },
|
||||
neorg = { symbol = " ", name = "Neorg", hl_group = "Neorg" },
|
||||
emoji = { symbol = "ﲃ ", name = "Emoji", hl_group = "Emoji" },
|
||||
neorg = { symbol = " ", name = "Neorg", hl_group = "Neorg" },
|
||||
emoji = { symbol = " ", name = "Emoji", hl_group = "Emoji" },
|
||||
zsh = { symbol = " ", name = "Zsh", hl_group = "Zsh" },
|
||||
crates = { symbol = " ", name = "Crates", hl_group = "Crates" },
|
||||
cmdline_history = { symbol = " ", name = "Cmd History", hl_group = "CmdHistory" },
|
||||
rg = { symbol = " ", name = "Ripgrep", hl_group = "Ripgrep" },
|
||||
npm = { symbol = " ", name = "Npm,", hl_group = "Npm," },
|
||||
conventionalcommits = { symbol = " ", name = "Commit", hl_group = "Commit" },
|
||||
spell = { symbol = " ", name = "Spell", hl_group = "Spell" },
|
||||
conventionalcommits = { symbol = " ", name = "Commit", hl_group = "Commit" },
|
||||
spell = { symbol = " ", name = "Spell", hl_group = "Spell" },
|
||||
}
|
||||
|
||||
local extra_kind_icons = {
|
||||
|
@ -119,11 +119,11 @@ local buttons = {
|
||||
type = "group",
|
||||
val = {
|
||||
button("e", " New File", ":ene <BAR> startinsert <CR>"),
|
||||
button("f", " Find File", ":Telescope find_files<CR>"),
|
||||
button("f", " Find File", ":Telescope find_files<CR>"),
|
||||
button("r", " Recent", ":Telescope oldfiles<CR>"),
|
||||
button("s", " Settings", "<cmd>e ~/.config/nvim/<CR>"),
|
||||
button("u", " Update Plugins", ":Lazy sync<CR>"),
|
||||
button("q", " Quit", ":qa<CR>"),
|
||||
button("q", " Quit", ":qa<CR>"),
|
||||
},
|
||||
opts = { spacing = 0 },
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ vim.keymap.set("n", "zM", require("ufo").closeAllFolds)
|
||||
-- Show numbers for fold text
|
||||
local handler = function(virtText, lnum, endLnum, width, truncate)
|
||||
local newVirtText = {}
|
||||
local suffix = (" %d "):format(endLnum - lnum)
|
||||
local suffix = (" %d "):format(endLnum - lnum)
|
||||
local sufWidth = vim.fn.strdisplaywidth(suffix)
|
||||
local targetWidth = width - sufWidth
|
||||
local curWidth = 0
|
||||
|
@ -691,10 +691,10 @@ lazy.setup({
|
||||
enable = true,
|
||||
head = { cursor = "⯈", texthl = "SmoothCursorCursor", linehl = nil },
|
||||
body = {
|
||||
{ cursor = "", texthl = "SmoothCursorTrailBig1" },
|
||||
{ cursor = "", texthl = "SmoothCursorTrailBig2" },
|
||||
{ cursor = "●", texthl = "SmoothCursorTrailMedium" },
|
||||
{ cursor = "●", texthl = "SmoothCursorTrailMedium" },
|
||||
{ cursor = "", texthl = "SmoothCursorTrailBig1" },
|
||||
{ cursor = "", texthl = "SmoothCursorTrailBig2" },
|
||||
{ cursor = "", texthl = "SmoothCursorTrailMedium" },
|
||||
{ cursor = "", texthl = "SmoothCursorTrailMedium" },
|
||||
{ cursor = "•", texthl = "SmoothCursorTrailSmall" },
|
||||
{ cursor = ".", texthl = "SmoothCursorTrailXSmall" },
|
||||
{ cursor = ".", texthl = "SmoothCursorTrailXSmall" },
|
||||
|
@ -39,12 +39,11 @@ return {
|
||||
},
|
||||
-- NOTE: Attempt to resolve missing symbols etc.
|
||||
-- <built-in>, BuiltIn
|
||||
{ family = "Symbols Nerd Font Mono", scale = 0.8 },
|
||||
{ family = "Symbols Nerd Font", scale = 0.8 },
|
||||
{ family = "Symbols Nerd Font Mono" },
|
||||
{ family = "Symbols Nerd Font" },
|
||||
"Noto Sans Symbols",
|
||||
"Noto Sans Symbols2",
|
||||
"PowerlineExtraSymbols",
|
||||
{ family = "FiraCode NF", weight = "DemiBold", scale = 1.2 },
|
||||
"MesloLGS NF",
|
||||
|
||||
-- <built-in>, BuiltIn
|
||||
|
Loading…
x
Reference in New Issue
Block a user