use catppuccin colorscheme
This commit is contained in:
parent
69181599a5
commit
7d8c680f17
4 changed files with 49 additions and 2 deletions
29
lua/plugins/configs/catppuccin.lua
Normal file
29
lua/plugins/configs/catppuccin.lua
Normal 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
|
|
@ -11,6 +11,7 @@ lualine.setup({
|
|||
refresh = {
|
||||
winbar = 50,
|
||||
},
|
||||
theme = "catppuccin",
|
||||
},
|
||||
sections = {
|
||||
lualine_a = { "mode" },
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local present, nightfox = pcall(require, "nightfox")
|
||||
local present, _ = pcall(require, "nightfox")
|
||||
|
||||
if present then
|
||||
vim.cmd("colorscheme nordfox")
|
||||
|
|
|
@ -21,6 +21,16 @@ vim.cmd([[
|
|||
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")
|
||||
|
||||
packer.init({
|
||||
|
@ -33,6 +43,7 @@ packer.init({
|
|||
enable = true,
|
||||
threshold = 0,
|
||||
},
|
||||
auto_reload_compiled = true,
|
||||
})
|
||||
|
||||
return packer.startup(function(use)
|
||||
|
@ -74,7 +85,13 @@ return packer.startup(function(use)
|
|||
"EdenEast/nightfox.nvim",
|
||||
run = ":NightfoxCompile",
|
||||
config = function()
|
||||
require("plugins.configs.nightfox")
|
||||
-- require("plugins.configs.nightfox")
|
||||
end,
|
||||
})
|
||||
use({
|
||||
"catppuccin/nvim",
|
||||
config = function()
|
||||
require("plugins.configs.catppuccin")
|
||||
end,
|
||||
})
|
||||
|
||||
|
|
Reference in a new issue