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