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" })
|
vim.keymap.set("n", "<C-k>", "<C-w><C-k>", { desc = "Move focus to the upper window" })
|
||||||
|
|
||||||
-- [[ plugin configuration ]]
|
-- [[ 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({
|
require("nvim-treesitter.configs").setup({
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
@ -75,8 +86,6 @@ require("nvim-treesitter.configs").setup({
|
||||||
indent = { enable = true },
|
indent = { enable = true },
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.cmd.colorscheme("catppuccin-macchiato")
|
|
||||||
|
|
||||||
require("lualine").setup({
|
require("lualine").setup({
|
||||||
options = {
|
options = {
|
||||||
theme = "catppuccin",
|
theme = "catppuccin",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue