Skip to content

Commit a0aa892

Browse files
committed
refactor: restructure nvim icon condition and update kitty narrow_symbols
1 parent 38472fe commit a0aa892

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.config/kitty/kitty.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ symbol_map U+23FB-U+23FE,U+2b58 JetBrainsMono Nerd Font Mono
3939
symbol_map U+F300-U+F313 JetBrainsMono Nerd Font Mono
4040
# Pomicons
4141
symbol_map U+E000-U+E00D JetBrainsMono Nerd Font Mono
42-
narrow_symbols codepoints
42+
# narrow_symbols U+E0A0-U+E0A3,U+E0B0-U+E0BF
4343
font_size 15
4444
font_family JetBrains Mono
4545
disable_ligatures never

.config/nvim/lua/plugins/ui/visuals.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,12 @@ return {
232232
render = function(props)
233233
local is_tty = vim.env.TERM == "xterm" or vim.env.TERM == "linux"
234234
local filename = vim.fn.fnamemodify(vim.api.nvim_buf_get_name(props.buf), ":t")
235-
local ft_icon, ft_color = is_tty and { nil, nil }
236-
or require("nvim-web-devicons").get_icon_color(filename)
235+
local ft_icon, ft_color
236+
if is_tty then
237+
ft_icon, ft_color = nil, nil
238+
else
239+
ft_icon, ft_color = require("nvim-web-devicons").get_icon_color(filename)
240+
end
237241
local is_modified = vim.bo[props.buf].modified
238242

239243
local function get_git_diff()

0 commit comments

Comments
 (0)