From 1352941f3c17121335e304d689bf4fbca8e6c8e5 Mon Sep 17 00:00:00 2001 From: Mat Jones Date: Wed, 25 Aug 2021 09:42:43 -0400 Subject: [PATCH] fix indent format --- .../core/integrations/nvimtree.lua | 56 +++++++++---------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/lua/catppuccino/core/integrations/nvimtree.lua b/lua/catppuccino/core/integrations/nvimtree.lua index c686dcb..356b0bc 100644 --- a/lua/catppuccino/core/integrations/nvimtree.lua +++ b/lua/catppuccino/core/integrations/nvimtree.lua @@ -1,34 +1,34 @@ local M = {} function M.get(cpt) - local config = require("catppuccino.config").options - local rootFolderColor = cpt.black - if - config.integrations - and config.integrations.nvimtree - and type(config.integrations.nvimtree) == "table" - and config.integrations.nvimtree.show_root - then - rootFolderColor = cpt.blue - end - return { - NvimTreeFolderName = {fg = cpt.blue}, - NvimTreeFolderIcon = {fg = cpt.blue}, - NvimTreeNormal = {fg = cpt.fg, bg = cpt.bg_sidebar}, - NvimTreeOpenedFolderName = {fg = cpt.blue}, - NvimTreeEmptyFolderName = {fg = cpt.blue_br}, - 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}, - } + local config = require("catppuccino.config").options + local rootFolderColor = cpt.black + if + config.integrations + and config.integrations.nvimtree + and type(config.integrations.nvimtree) == "table" + and config.integrations.nvimtree.show_root + then + rootFolderColor = cpt.blue + end + return { + NvimTreeFolderName = {fg = cpt.blue}, + NvimTreeFolderIcon = {fg = cpt.blue}, + NvimTreeNormal = {fg = cpt.fg, bg = cpt.bg_sidebar}, + NvimTreeOpenedFolderName = {fg = cpt.blue}, + NvimTreeEmptyFolderName = {fg = cpt.blue_br}, + 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 return M