feat(theme): Use cattppuccin-mocha theme
This commit is contained in:
parent
9199070c13
commit
b5056a4fe8
6 changed files with 59 additions and 3 deletions
|
@ -29,6 +29,7 @@ with final.pkgs.lib; let
|
||||||
# ^ Debugger/task runner
|
# ^ Debugger/task runner
|
||||||
|
|
||||||
# Themes
|
# Themes
|
||||||
|
catppuccin-nvim # Soothing pastel theme for (Neo)vim
|
||||||
tokyonight-nvim # https://github.com/folke/tokyonight.nvim
|
tokyonight-nvim # https://github.com/folke/tokyonight.nvim
|
||||||
|
|
||||||
# plugins from nixpkgs go in here.
|
# plugins from nixpkgs go in here.
|
||||||
|
|
|
@ -15,6 +15,8 @@ if fn.has('termguicolors') then
|
||||||
opt.termguicolors = true
|
opt.termguicolors = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
vim.cmd.colorscheme "catppuccin-mocha"
|
||||||
|
|
||||||
-- See :h <option> to see what the options do
|
-- See :h <option> to see what the options do
|
||||||
|
|
||||||
-- Search down into subfolders
|
-- Search down into subfolders
|
||||||
|
@ -110,7 +112,7 @@ vim.diagnostic.config {
|
||||||
|
|
||||||
g.editorconfig = true
|
g.editorconfig = true
|
||||||
|
|
||||||
cmd[[colorscheme tokyonight]]
|
-- cmd[[colorscheme tokyonight]]
|
||||||
vim.opt.colorcolumn = '80,100'
|
vim.opt.colorcolumn = '80,100'
|
||||||
|
|
||||||
-- Native plugins
|
-- Native plugins
|
||||||
|
|
27
nvim/plugin/1.catppuccin.lua
Normal file
27
nvim/plugin/1.catppuccin.lua
Normal 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,
|
||||||
|
}
|
||||||
|
})
|
27
nvim/plugin/bufferline.lua
Normal file
27
nvim/plugin/bufferline.lua
Normal 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" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
|
@ -45,7 +45,7 @@ require('lualine').setup {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
options = {
|
options = {
|
||||||
theme = 'auto',
|
theme = 'catppuccin-mocha',
|
||||||
-- component_separators = { left = '', right = ''},
|
-- component_separators = { left = '', right = ''},
|
||||||
component_separators = { left = '', right = '' },
|
component_separators = { left = '', right = '' },
|
||||||
-- section_separators = { left = '', right = ''},
|
-- section_separators = { left = '', right = ''},
|
||||||
|
|
|
@ -14,6 +14,5 @@ require('which-key').setup()
|
||||||
require('Comment').setup()
|
require('Comment').setup()
|
||||||
require("better_escape").setup()
|
require("better_escape").setup()
|
||||||
require("todo-comments").setup()
|
require("todo-comments").setup()
|
||||||
require("bufferline").setup{}
|
|
||||||
require("toggleterm").setup()
|
require("toggleterm").setup()
|
||||||
require("trouble").setup()
|
require("trouble").setup()
|
||||||
|
|
Loading…
Reference in a new issue