chore(config): use dynamic theme for lualine vim

main
sudo pacman -Syu 2022-05-27 14:06:40 +07:00
parent 0de424358a
commit 52b83ab3c7
No known key found for this signature in database
GPG Key ID: D6CB5C6C567C47B0
1 changed files with 6 additions and 1 deletions

View File

@ -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 = "" },
},