nvim: adapted icons to fit with another

master
tiyn 1 year ago
parent ec1e911712
commit 2a2dc266b0

@ -13,7 +13,6 @@ end
vim.opt.rtp:prepend(lazypath) vim.opt.rtp:prepend(lazypath)
return require("lazy").setup({ return require("lazy").setup({
-- display git status per line -- display git status per line
{ {
'lewis6991/gitsigns.nvim', 'lewis6991/gitsigns.nvim',
@ -132,7 +131,7 @@ return require("lazy").setup({
config = function() config = function()
require("mason").setup({ require("mason").setup({
ui = { ui = {
icons = Install_icons icons = Install_signs
} }
}) })
end end
@ -282,7 +281,7 @@ return require("lazy").setup({
preset = "codicons", preset = "codicons",
maxwidth = 50, maxwidth = 50,
menu = Menu_signs, menu = Menu_signs,
symbol_map = Symbol_map symbol_map = Lsp_signs
}) })
} }
} }
@ -315,11 +314,16 @@ return require("lazy").setup({
view = { view = {
width = 30, width = 30,
}, },
filters = {
dotfiles = true,
},
renderer = { renderer = {
group_empty = true, group_empty = true,
icons = {
glyphs = {
git = Git_signs
},
}, },
filters = {
dotfiles = true,
} }
}) })
end end
@ -446,5 +450,11 @@ return require("lazy").setup({
config = function() config = function()
vim.cmd('colorscheme tccs') vim.cmd('colorscheme tccs')
end end
},
},
{
ui = {
icons = Lazy_signs
}
} }
}) )

@ -1,4 +1,4 @@
-- set diagnostic signs -- set signs for various uses
Error_sign = "" Error_sign = ""
Warn_sign = "" Warn_sign = ""
Info_sign = "" Info_sign = ""
@ -15,7 +15,7 @@ Menu_signs = {
luasnip = "", luasnip = "",
} }
Symbol_map = { Lsp_signs = {
Text = "", Text = "",
Method = "", Method = "",
Function = "φ", Function = "φ",
@ -43,12 +43,46 @@ Symbol_map = {
TypeParameter = "" TypeParameter = ""
} }
Install_icons = { Install_signs = {
package_installed = "", package_installed = "",
package_pending = "", package_pending = "",
package_uninstalled = "" package_uninstalled = ""
} }
Git_signs = {
unstaged = "",
staged = "",
unmerged = "",
renamed = "",
deleted = "",
untracked = "",
ignored = "",
}
Lazy_signs = {
cmd = "",
config = "",
event = "",
ft = "",
init = "",
import = "",
keys = "",
lazy = "󰒲 ",
loaded = "",
not_loaded = "",
plugin = "",
runtime = "",
source = "",
start = "",
task = "",
list = {
"",
"",
"",
"",
}
}
vim.fn.sign_define( vim.fn.sign_define(
"DiagnosticSignError", "DiagnosticSignError",
{ texthl = "DiagnosticSignError", text = Error_sign, numhl = "DiagnosticSignError" } { texthl = "DiagnosticSignError", text = Error_sign, numhl = "DiagnosticSignError" }

Loading…
Cancel
Save