my-nvim-setup/lua/plugins/nvim-web-devicons/config.lua

45 lines
1.5 KiB
Lua
Raw Permalink Normal View History

2024-02-15 11:13:37 +00:00
return function()
2024-03-05 06:54:50 +00:00
require("nvim-web-devicons").setup {
2024-03-05 06:58:22 +00:00
-- your personal icons can go here (to override)
2024-03-05 06:54:50 +00:00
-- you can specify color or cterm_color instead of specifying both of them
-- DevIcon will be appended to `name`
override = {
zsh = {
icon = "",
color = "#428850",
cterm_color = "65",
name = "Zsh",
},
},
-- globally enable different highlight colors per icon (default to true)
-- if set to false all icons will have the default icon's color
color_icons = true,
-- globally enable default icons (default to false)
2024-03-05 06:58:22 +00:00
-- will get overridden by `get_icons` option
2024-03-05 06:54:50 +00:00
default = true,
-- globally enable "strict" selection of icons - icon will be looked up in
-- different tables, first by filename, and if not found by extension; this
-- prevents cases when file doesn't have any extension but still gets some icon
-- because its name happened to match some extension (default to false)
strict = true,
-- same as `override` but specifically for overrides by filename
-- takes effect when `strict` is true
override_by_filename = {
[".gitignore"] = {
icon = "",
color = "#f1502f",
name = "Gitignore",
},
},
-- same as `override` but specifically for overrides by extension
-- takes effect when `strict` is true
override_by_extension = {
["log"] = {
icon = "",
color = "#81e043",
name = "Log",
},
},
}
2024-02-15 11:13:37 +00:00
end