Archived
0
0
Fork 0

use catppuccin colorscheme

This commit is contained in:
Daryl Ronningen 2022-09-05 12:26:20 -07:00
parent 69181599a5
commit 7d8c680f17
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B
4 changed files with 49 additions and 2 deletions

View file

@ -0,0 +1,29 @@
local present, catppuccin = pcall(require, "catppuccin")
if present then
vim.g.catppuccin_flavour = "macchiato"
catppuccin.setup({
term_colors = true,
compile = {
enabled = true,
path = vim.fn.stdpath("cache") .. "/catppuccin",
},
integration = {
neotree = {
enabled = true,
show_root = true,
transparent_panel = false,
},
navic = {
enabled = true,
custom_bg = "NONE",
},
lsp_saga = true,
treesitter_context = true,
ts_rainbow = true,
},
})
vim.cmd("colorscheme catppuccin")
end

View file

@ -11,6 +11,7 @@ lualine.setup({
refresh = { refresh = {
winbar = 50, winbar = 50,
}, },
theme = "catppuccin",
}, },
sections = { sections = {
lualine_a = { "mode" }, lualine_a = { "mode" },

View file

@ -1,4 +1,4 @@
local present, nightfox = pcall(require, "nightfox") local present, _ = pcall(require, "nightfox")
if present then if present then
vim.cmd("colorscheme nordfox") vim.cmd("colorscheme nordfox")

View file

@ -21,6 +21,16 @@ vim.cmd([[
augroup end augroup end
]]) ]])
vim.api.nvim_create_autocmd("User", {
pattern = "PackerCompileDone",
callback = function()
vim.cmd("CatppuccinCompile")
vim.defer_fn(function()
vim.cmd("colorscheme catppuccin")
end, 0)
end,
})
local packer = require("packer") local packer = require("packer")
packer.init({ packer.init({
@ -33,6 +43,7 @@ packer.init({
enable = true, enable = true,
threshold = 0, threshold = 0,
}, },
auto_reload_compiled = true,
}) })
return packer.startup(function(use) return packer.startup(function(use)
@ -74,7 +85,13 @@ return packer.startup(function(use)
"EdenEast/nightfox.nvim", "EdenEast/nightfox.nvim",
run = ":NightfoxCompile", run = ":NightfoxCompile",
config = function() config = function()
require("plugins.configs.nightfox") -- require("plugins.configs.nightfox")
end,
})
use({
"catppuccin/nvim",
config = function()
require("plugins.configs.catppuccin")
end, end,
}) })