switch to catppuccin, make changing colorscheme easier
This commit is contained in:
parent
53e794e953
commit
3acc56e3c0
8 changed files with 43 additions and 21 deletions
2
init.lua
2
init.lua
|
@ -29,3 +29,5 @@ for _, mod in ipairs(modules) do
|
|||
error(('Error loading %s...\n\n%s'):format(mod, err))
|
||||
end
|
||||
end
|
||||
|
||||
vim.cmd('colorscheme ' .. require('config').colorscheme)
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
"none-ls-shellcheck.nvim": { "branch": "main", "commit": "0f84461241e76e376a95fb7391deac82dc3efdbf" },
|
||||
"none-ls.nvim": { "branch": "main", "commit": "a117163db44c256d53c3be8717f3e1a2a28e6299" },
|
||||
"nui.nvim": { "branch": "main", "commit": "53e907ffe5eedebdca1cd503b00aa8692068ca46" },
|
||||
"nvim": { "branch": "main", "commit": "5b5e3aef9ad7af84f463d17b5479f06b87d5c429" },
|
||||
"nvim-autopairs": { "branch": "master", "commit": "68f0e5c3dab23261a945272032ee6700af86227a" },
|
||||
"nvim-cmp": { "branch": "main", "commit": "c27370703e798666486e3064b64d59eaf4bdc6d5" },
|
||||
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
local config = {
|
||||
border = 'none',
|
||||
colorscheme = 'catppuccin',
|
||||
add_plugins = {},
|
||||
plugins = {},
|
||||
lsp = {
|
||||
|
|
33
lua/plugins/catppuccin.lua
Normal file
33
lua/plugins/catppuccin.lua
Normal file
|
@ -0,0 +1,33 @@
|
|||
local config = {
|
||||
flavour = 'mocha',
|
||||
integrations = {
|
||||
fidget = true,
|
||||
which_key = true,
|
||||
lsp_trouble = true,
|
||||
telescope = {
|
||||
enabled = true,
|
||||
},
|
||||
},
|
||||
color_overrides = {
|
||||
mocha = {
|
||||
base = '#11111b',
|
||||
mantle = '#181825',
|
||||
crust = '#11111b',
|
||||
},
|
||||
},
|
||||
custom_highlights = function(_)
|
||||
return {
|
||||
CursorLine = { bg = '#1e1e2e' },
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
||||
return {
|
||||
{ -- color scheme
|
||||
'catppuccin/nvim',
|
||||
lazy = false,
|
||||
config = function()
|
||||
require('catppuccin').setup(config)
|
||||
end,
|
||||
},
|
||||
}
|
|
@ -3,9 +3,9 @@ return {
|
|||
opts = {
|
||||
notification = {
|
||||
override_vim_notify = true,
|
||||
},
|
||||
progress = {
|
||||
poll_rate = 10,
|
||||
window = {
|
||||
winblend = 0,
|
||||
},
|
||||
},
|
||||
},
|
||||
lazy = false,
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
local config = require('config')
|
||||
local utils = require('utils')
|
||||
local lsp_utils = require('utils.lsp')
|
||||
local icons = require('utils.icons')
|
||||
|
@ -31,7 +32,7 @@ local custom_sections = {
|
|||
|
||||
local plugin_config = {
|
||||
options = {
|
||||
theme = 'tokyonight',
|
||||
theme = config.colorscheme,
|
||||
},
|
||||
sections = {
|
||||
lualine_a = { 'mode' },
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
local config = {
|
||||
style = 'night',
|
||||
light_style = 'moon',
|
||||
sidebars = { 'qf', 'packer', 'help' },
|
||||
}
|
||||
|
||||
return {
|
||||
{ -- color scheme
|
||||
'folke/tokyonight.nvim',
|
||||
lazy = false,
|
||||
config = function()
|
||||
require('tokyonight').setup(config)
|
||||
vim.cmd('color tokyonight')
|
||||
end,
|
||||
},
|
||||
}
|
|
@ -9,7 +9,7 @@ require('lazy').setup('plugins', {
|
|||
},
|
||||
install = {
|
||||
missing = true,
|
||||
colorscheme = { 'tokyonight' },
|
||||
colorscheme = { config.colorscheme },
|
||||
},
|
||||
performance = {
|
||||
rtp = {
|
||||
|
|
Loading…
Add table
Reference in a new issue