repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

neovim: refactor some icons.

90c0245c97469aee647bd909da11eee1da23901d

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (5)

+67 / −49 text lines

Diff layout

neovim/lua/bugabinga/options/ui.lua

Modified

+9 / −7 text lines

1 local icon = require'std.icon'
2
13-- show trailing whitespace
24vim.opt.list = true
35vim.opt.listchars = {
4 space = '⋅',
5 eol = '↴',
6 tab = '__',
7 trail = '•',
8 extends = '❯',
9 precedes = '❮',
10 nbsp = '_',
6 space = icon.space,
7 eol = icon.eol,
8 tab = icon.tab .. ' ',
9 trail = icon.trail,
10 extends = icon.extends,
11 precedes = icon.precedes,
12 nbsp = icon.nbsp,
1315-- do not spam the cmdline with every little input

neovim/lua/bugabinga/plugins/heirline.lua

Modified

+40 / −39 text lines

3131 static = {
3232 mode_names = {
33 n = "Ν",
34 no = "Ν?",
35 nov = "Ν?",
36 noV = "Ν?",
37 ["no\22"] = "Ν?",
38 niI = "Νi",
39 niR = "Νr",
40 niV = "Νv",
41 nt = "Νt",
42 v = "𝗩 ",
43 vs = "𝗩 s",
44 V = "𝗩 _",
45 Vs = "𝗩 s",
46 ["\22"] = "^V",
47 ["\22s"] = "^V",
48 s = "S",
49 S = "S_",
50 ["\19"] = "^S",
51 i = "Ι",
52 ic = "Ιc",
53 ix = "Ιx",
54 R = "𝐑 ",
55 Rc = "𝐑c",
56 Rx = "𝐑x",
57 Rv = "𝐑v",
58 Rvc = "𝐑v",
59 Rvx = "𝐑v",
60 c = "𝐂 ",
61 cv = "𝐄x",
62 r = " ",
63 rm = "M",
64 ["r?"] = "?",
65 ["!"] = "!",
66 t = " ",
33 n = icon.normal,
34 no = icon.normal .. "?",
35 nov = icon.normal .. "?",
36 noV = icon.normal .. "?",
37 ["no\22"] = icon.normal .. "?",
38 niI = icon.normal .. "i",
39 niR = icon.normal .. "r",
40 niV = icon.normal .. "v",
41 nt = icon.normal .. "t",
42 v = icon.visual,
43 vs = icon.visual .. "s",
44 V = icon.visual .. "_",
45 Vs = icon.visual .. "s",
46 ["\22"] = "^" .. icon.visual,
47 ["\22s"] = "^" .. icon.visual,
48 s = icon.select,
49 S = icon.select .. "_",
50 ["\19"] = "^" .. icon.select,
51 i = icon.insert,
52 ic = icon.insert .. "c",
53 ix = icon.insert .. "x",
54 R = icon.replace,
55 Rc = icon.replace .. "c",
56 Rx = icon.replace .. "x",
57 Rv = icon.replace .. "v",
58 Rvc = icon.replace .. "v",
59 Rvx = icon.replace .. "v",
60 c = icon.command,
61 cv = icon.command .. "x",
62 r = icon.pending,
63 rm = icon.pending .. "m",
64 ["r?"] = icon.pending .. "?",
65 ["!"] = icon.exclaim,
66 t = icon.terminal,
6767 },
6868 mode_colors = {
6969 n = "ui_normal" ,
8383 },
8585 provider = function(self)
86 return " ".. icon.vim .." %3(" .. self.mode_names[self.mode] .. "%) "
86 local mode_name = self.mode_names[self.mode]
87 return " ".. icon.vim .." %3(" .. mode_name .. "%) "
8788 end,
8990 hl = function(self)
216217 provider = function()
217218 local names = {}
218 for i, client in pairs(vim.lsp.get_active_clients{ bufnr = 0 }) do
219 for _, client in pairs(vim.lsp.get_active_clients{ bufnr = 0 }) do
219220 table.insert(names, client.name)
220221 end
221 return icon.lsp .. " " .. table.concat(names, " ")
222 return icon.lsp .. " " .. table.concat(names, " ")
222223 end,
223224 }
356357 local work_dir = {
357358 init = function(self)
358359 self.icon = (vim.fn.haslocaldir(0) == 1 and icon['local'] or "") .. " " .. icon.global .. " "
359 self.cwd = vim.fs.normalize(vim.uv.cwd()):gsub(vim.fs.normalize(vim.uv.os_homedir()),"~")
360 self.cwd = vim.fs.normalize(vim.uv.cwd()):gsub(vim.fs.normalize(vim.uv.os_homedir()),"~")
360361 end,
362363 flexible = 1,
403404 }
405406 local togglers = {
406 provider = function(self)
407 provider = function()
407408 local togglers = require'bugabinga.options.togglers'
408409 return tostring(togglers)
409410 end,

neovim/lua/std/icon.lua

Modified

+15 / −0 text lines

2828 lazy = '󰄻',
2929 global = '󱥔',
3030 ['local'] = '󱥕',
31 space = '∸',
32 eol = '↴',
33 tab = '󰌒',
34 trail = '•',
35 extends = '❯',
36 precedes = '❮',
37 nbsp = '␣',
38 normal = 'Ν',
39 visual = '󰒉',
40 insert = '',
41 select = '󰒉',
42 replace = '',
43 command = '󰘳',
44 pending = '',
45 exclaim = '',

neovim/lua/std/table/init.lua

Modified

+1 / −1 text lines

44return {
55 human_readable = require'std.table.human_readable',
66 deep_concat = require'std.table.deep_concat',
7 join = require'std.table.join',
7 join = require'std.table.join',
99 add_reverse_lookup = vim.tbl_add_reverse_lookup,
1010 contains = vim.tbl_contains,

wezterm/wezterm.lua

Modified

+2 / −2 text lines

1717 font_size = 13
1818 enable_wayland = true
1919elseif hostname == 'pop-os' then
20 font_size = 14
20 font_size = 15
2121elseif hostname == 'PC-00625' then
22 font_size = 14
22 font_size = 15
2323end
2525local font_rules = {