From 52b83ab3c7eab76dd05e55ec9ccd0295249bdcbe Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Fri, 27 May 2022 14:06:40 +0700 Subject: [PATCH] chore(config): use dynamic theme for lualine vim --- data/nvim/init.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/data/nvim/init.lua b/data/nvim/init.lua index 232fda0..5496c15 100644 --- a/data/nvim/init.lua +++ b/data/nvim/init.lua @@ -64,10 +64,15 @@ require("packer").startup(function() use("fatih/vim-go") end) +local lualine_theme = require("lualine.themes.iceberg") +if vim.fn.getenv("COLORTERM") == "truecolor" then + lualine_theme = require("lualine.themes.catppuccin") +end + require("lualine").setup({ options = { icons_enabled = false, - theme = "catppuccin", + theme = lualine_theme, component_separators = { left = "", right = "" }, section_separators = { left = "", right = "" }, },