feat(theme): Use cattppuccin-mocha theme

This commit is contained in:
Jiří Štefka 2024-11-19 04:21:02 +01:00
parent 9199070c13
commit b5056a4fe8
Signed by: jiriks74
GPG key ID: 1D5E30D3DB2264DE
6 changed files with 59 additions and 3 deletions

View file

@ -29,6 +29,7 @@ with final.pkgs.lib; let
# ^ Debugger/task runner
# Themes
catppuccin-nvim # Soothing pastel theme for (Neo)vim
tokyonight-nvim # https://github.com/folke/tokyonight.nvim
# plugins from nixpkgs go in here.

View file

@ -15,6 +15,8 @@ if fn.has('termguicolors') then
opt.termguicolors = true
end
vim.cmd.colorscheme "catppuccin-mocha"
-- See :h <option> to see what the options do
-- Search down into subfolders
@ -110,7 +112,7 @@ vim.diagnostic.config {
g.editorconfig = true
cmd[[colorscheme tokyonight]]
-- cmd[[colorscheme tokyonight]]
vim.opt.colorcolumn = '80,100'
-- Native plugins

View file

@ -0,0 +1,27 @@
if vim.g.did_load_catppuccin_plugin then
return
end
vim.g.did_load_catppuccin_plugin = true
require("catppuccin").setup({
integrations = {
aerial = true,
cmp = true,
diffview = true,
gitsigns = true,
indent_blankline = {
enabled = true,
-- scope_color = "", -- catppuccin color (eg. `lavender`) Default: text
colored_indent_levels = false,
},
lsp_trouble = true,
navic = {
enabled = false,
custom_bg = "NONE", -- "lualine" will set background to mantle
},
nvim_surround = true,
overseer = true,
treesitter = true,
which_key = true,
}
})

View file

@ -0,0 +1,27 @@
if not vim.g.did_load_catppuccin_plugin then
require("bufferline").setup{}
return
end
if vim.g.did_load_bufferline_plugin then
return
end
vim.g.did_load_bufferline_plugin = true
local mocha = require("catppuccin.palettes").get_palette "mocha"
require("bufferline").setup {
highlights = require("catppuccin.groups.integrations.bufferline").get {
styles = { "italic", "bold" },
custom = {
all = {
fill = { bg = "#000000" },
},
mocha = {
background = { fg = mocha.text },
},
latte = {
background = { fg = "#000000" },
},
},
},
}

View file

@ -45,7 +45,7 @@ require('lualine').setup {
},
},
options = {
theme = 'auto',
theme = 'catppuccin-mocha',
-- component_separators = { left = '', right = ''},
component_separators = { left = '', right = '' },
-- section_separators = { left = '', right = ''},

View file

@ -14,6 +14,5 @@ require('which-key').setup()
require('Comment').setup()
require("better_escape").setup()
require("todo-comments").setup()
require("bufferline").setup{}
require("toggleterm").setup()
require("trouble").setup()