dotfiles/home/apps/neovim/lua/plugins/nvim-tree.lua

80 lines
1.7 KiB
Lua
Raw Normal View History

---@type LazyPluginSpec[]
return {
{
"nvim-tree/nvim-tree.lua",
opts = {
renderer = {
indent_markers = {
enable = true,
},
},
diagnostics = {
enable = true,
},
actions = {
file_popup = {
open_win_config = {
2023-06-12 05:46:16 +02:00
border = vim.g.bc.style,
},
},
},
},
dependencies = {
"nvim-tree/nvim-web-devicons",
},
},
2023-06-22 23:17:12 +02:00
{
"nvim-tree/nvim-web-devicons",
config = function()
local C = require("catppuccin.palettes").get_palette()
2023-06-22 23:17:12 +02:00
local devicons = require("nvim-web-devicons")
local justfile = {
2023-06-23 20:02:03 +02:00
icon = "󱚣",
2023-06-22 23:17:12 +02:00
name = "Justfile",
color = C.peach,
2023-06-22 23:17:12 +02:00
}
devicons.setup({
override_by_extension = {
2023-07-01 20:23:44 +02:00
["astro"] = {
icon = "",
name = "Astro",
color = C.red,
2023-07-01 20:23:44 +02:00
},
2023-06-22 23:17:12 +02:00
["norg"] = {
2023-06-23 20:02:03 +02:00
icon = "",
2023-06-22 23:17:12 +02:00
name = "Neorg",
color = C.green,
2023-06-22 23:17:12 +02:00
},
},
override_by_filename = {
[".ecrc"] = {
2023-06-23 20:02:03 +02:00
icon = "",
2023-06-22 23:17:12 +02:00
name = "EditorConfigChecker",
color = C.green,
2023-06-22 23:17:12 +02:00
},
[".envrc"] = {
2023-06-23 20:02:03 +02:00
icon = "",
2023-06-22 23:17:12 +02:00
name = "envrc",
color = C.yellow,
2023-06-22 23:17:12 +02:00
},
[".editorconfig"] = {
2023-06-23 20:02:03 +02:00
icon = "",
2023-06-22 23:17:12 +02:00
name = "EditorConfig",
color = C.green,
2023-06-22 23:17:12 +02:00
},
[".luacheckrc"] = {
2023-06-23 20:02:03 +02:00
icon = "󰢱",
2023-06-22 23:17:12 +02:00
name = "LuacheckRC",
color = C.blue,
2023-06-22 23:17:12 +02:00
},
[".Justfile"] = justfile,
[".justfile"] = justfile,
["Justfile"] = justfile,
["justfile"] = justfile,
},
})
end,
},
}