feat(neovim): configure auto theme switch
This commit is contained in:
parent
21bb9a56ee
commit
1334d7d2ea
1 changed files with 11 additions and 2 deletions
|
@ -66,6 +66,17 @@ vim.keymap.set("n", "<C-j>", "<C-w><C-j>", { desc = "Move focus to the lower win
|
|||
vim.keymap.set("n", "<C-k>", "<C-w><C-k>", { desc = "Move focus to the upper window" })
|
||||
|
||||
-- [[ plugin configuration ]]
|
||||
require("catppuccin").setup({
|
||||
flavour = "auto",
|
||||
background = {
|
||||
light = "latte",
|
||||
dark = "mocha",
|
||||
},
|
||||
})
|
||||
|
||||
-- setup must be called before colorscheme
|
||||
vim.cmd.colorscheme("catppuccin")
|
||||
|
||||
require("nvim-treesitter.configs").setup({
|
||||
highlight = {
|
||||
enable = true,
|
||||
|
@ -75,8 +86,6 @@ require("nvim-treesitter.configs").setup({
|
|||
indent = { enable = true },
|
||||
})
|
||||
|
||||
vim.cmd.colorscheme("catppuccin-macchiato")
|
||||
|
||||
require("lualine").setup({
|
||||
options = {
|
||||
theme = "catppuccin",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue