mirror of https://github.com/sgoudham/nvim.git
add option to show root folder
parent
bf534aa06a
commit
b9225d5914
@ -1,24 +1,34 @@
|
|||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
function M.get(cpt)
|
function M.get(cpt)
|
||||||
return {
|
local config = require("catppuccino.config").options
|
||||||
NvimTreeFolderName = {fg = cpt.blue},
|
local rootFolderColor = cpt.black
|
||||||
NvimTreeFolderIcon = {fg = cpt.blue},
|
if
|
||||||
NvimTreeNormal = {fg = cpt.fg, bg = cpt.bg_sidebar},
|
config.integrations
|
||||||
NvimTreeOpenedFolderName = {fg = cpt.blue},
|
and config.integrations.nvimtree
|
||||||
NvimTreeEmptyFolderName = {fg = cpt.blue_br},
|
and type(config.integrations.nvimtree) == "table"
|
||||||
NvimTreeIndentMarker = {fg = cpt.comment},
|
and config.integrations.nvimtree.show_root
|
||||||
NvimTreeVertSplit = {fg = cpt.black, bg = cpt.black},
|
then
|
||||||
NvimTreeRootFolder = {fg = cpt.black, style = "bold"},
|
rootFolderColor = cpt.blue
|
||||||
NvimTreeSymlink = {fg = cpt.magenta},
|
end
|
||||||
NvimTreeStatuslineNc = {fg = cpt.black, bg = cpt.black},
|
return {
|
||||||
NvimTreeGitDirty = {fg = cpt.git.change},
|
NvimTreeFolderName = { fg = cpt.blue },
|
||||||
NvimTreeGitNew = {fg = cpt.git.add},
|
NvimTreeFolderIcon = { fg = cpt.blue },
|
||||||
NvimTreeGitDeleted = {fg = cpt.git.delete},
|
NvimTreeNormal = { fg = cpt.fg, bg = cpt.bg_sidebar },
|
||||||
NvimTreeSpecialFile = {fg = cpt.cyan},
|
NvimTreeOpenedFolderName = { fg = cpt.blue },
|
||||||
NvimTreeImageFile = {fg = cpt.fg_sidebar},
|
NvimTreeEmptyFolderName = { fg = cpt.blue_br },
|
||||||
NvimTreeOpenedFile = {fg = cpt.magenta}
|
NvimTreeIndentMarker = { fg = cpt.comment },
|
||||||
}
|
NvimTreeVertSplit = { fg = cpt.black, bg = cpt.black },
|
||||||
|
NvimTreeRootFolder = { fg = rootFolderColor, style = "bold" },
|
||||||
|
NvimTreeSymlink = { fg = cpt.magenta },
|
||||||
|
NvimTreeStatuslineNc = { fg = cpt.black, bg = cpt.black },
|
||||||
|
NvimTreeGitDirty = { fg = cpt.git.change },
|
||||||
|
NvimTreeGitNew = { fg = cpt.git.add },
|
||||||
|
NvimTreeGitDeleted = { fg = cpt.git.delete },
|
||||||
|
NvimTreeSpecialFile = { fg = cpt.cyan },
|
||||||
|
NvimTreeImageFile = { fg = cpt.fg_sidebar },
|
||||||
|
NvimTreeOpenedFile = { fg = cpt.magenta },
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
Loading…
Reference in New Issue