feat(neovim): use nerdfonts & avoid emojis that break neovim
Some emojis break rendering in neovim/kitty due to width issues. Can potentially be fixed by switching to a different terminal emulator but I haven't found one matching my other needs yet.
This commit is contained in:
parent
f59ae17641
commit
5bc58270bb
3 changed files with 19 additions and 9 deletions
|
@ -7,19 +7,19 @@ function LspStatus()
|
|||
local hints = #vim.diagnostic.get(0, { severity = vim.diagnostic.severity.HINT })
|
||||
if (errors > 0 or warnings > 0 or infos > 0 or hints > 0) then
|
||||
if errors > 0 then
|
||||
sl = sl .. "E" .. errors
|
||||
sl = sl .. " " .. errors
|
||||
end
|
||||
if warnings > 0 then
|
||||
sl = sl .. " W" .. warnings
|
||||
sl = sl .. " " .. warnings
|
||||
end
|
||||
if infos > 0 then
|
||||
sl = sl .. " I" .. infos
|
||||
sl = sl .. " " .. infos
|
||||
end
|
||||
if hints > 0 then
|
||||
sl = sl .. " H" .. hints
|
||||
sl = sl .. " " .. hints
|
||||
end
|
||||
else
|
||||
sl = sl .. "🗸"
|
||||
sl = sl .. ""
|
||||
end
|
||||
end
|
||||
return sl
|
||||
|
|
|
@ -9,10 +9,13 @@ in {
|
|||
enable = true;
|
||||
settings = {
|
||||
add_newline = false;
|
||||
status.symbol = "❌ ";
|
||||
status.disabled = false;
|
||||
status.symbol = "❌ ";
|
||||
aws.disabled = true;
|
||||
gcloud.disabled = true;
|
||||
|
||||
# kitty/neovim don't play well with multi-width emojis
|
||||
nix_shell.symbol = " ";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue