tangled
alpha
login
or
join now
robinwobin.dev
/
artio.nvim
3
fork
atom
minimal extui fuzzy finder for neovim
3
fork
atom
overview
issues
pulls
pipelines
fix(plugin): clean up highlights
robinwobin.dev
3 months ago
fff72a8e
a2189e7c
+10
-16
1 changed file
expand all
collapse all
unified
split
plugin
artio.lua
+10
-16
plugin/artio.lua
···
9
9
vim.api.nvim_create_autocmd("ColorScheme", {
10
10
group = augroup,
11
11
callback = function()
12
12
+
local hi = function(name, opts)
13
13
+
opts.default = true
14
14
+
vim.api.nvim_set_hl(0, name, opts)
15
15
+
end
16
16
+
12
17
local normal_hl = vim.api.nvim_get_hl(0, { name = "Normal" })
13
18
local msgarea_hl = vim.api.nvim_get_hl(0, { name = "MsgArea" })
14
19
15
15
-
vim.api.nvim_set_hl(0, "ArtioNormal", { fg = normal_hl.fg, bg = msgarea_hl.bg, default = true })
16
16
-
vim.api.nvim_set_hl(0, "ArtioPrompt", { link = "Title", default = true })
20
20
+
hi("ArtioNormal", { fg = normal_hl.fg, bg = msgarea_hl.bg })
21
21
+
hi("ArtioPrompt", { link = "Title" })
17
22
18
23
local cursor_hl = vim.api.nvim_get_hl(0, { name = "Cursor" })
19
24
local cursorline_hl = vim.api.nvim_get_hl(0, { name = "CursorLine" })
20
20
-
vim.api.nvim_set_hl(0, "ArtioSel", { fg = cursor_hl.bg, bg = cursorline_hl.bg, default = true })
21
21
-
vim.api.nvim_set_hl(0, "ArtioPointer", { fg = cursor_hl.bg, default = true })
22
22
-
23
23
-
vim.api.nvim_set_hl(0, "ArtioMatch", { link = "PmenuMatch", default = true })
24
24
-
end,
25
25
-
})
25
25
+
hi("ArtioSel", { fg = cursor_hl.bg, bg = cursorline_hl.bg })
26
26
+
hi("ArtioPointer", { fg = cursor_hl.bg })
26
27
27
27
-
vim.api.nvim_create_autocmd("ColorSchemePre", {
28
28
-
group = augroup,
29
29
-
callback = function()
30
30
-
vim.api.nvim_set_hl(0, "ArtioNormal", {})
31
31
-
vim.api.nvim_set_hl(0, "ArtioPrompt", {})
32
32
-
vim.api.nvim_set_hl(0, "ArtioSel", {})
33
33
-
vim.api.nvim_set_hl(0, "ArtioPointer", {})
34
34
-
vim.api.nvim_set_hl(0, "ArtioMatch", {})
28
28
+
hi("ArtioMatch", { link = "PmenuMatch" })
35
29
end,
36
30
})
37
31