From c822c45ea064b705768c15569beadde0278d7ae7 Mon Sep 17 00:00:00 2001 From: Daniele Pintore Date: Tue, 14 Apr 2026 09:51:12 +0200 Subject: [PATCH] nvim: use rose-pine theme --- .config/nvim/lazy-lock.json | 1 + .config/nvim/lua/plugins/colors.lua | 68 ++++++++++++++++------------- 2 files changed, 38 insertions(+), 31 deletions(-) diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index 36daa7d..435fbbd 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -8,6 +8,7 @@ "mason.nvim": { "branch": "main", "commit": "b03fb0f20bc1d43daf558cda981a2be22e73ac42" }, "nvim-lspconfig": { "branch": "master", "commit": "8a9378a822719346a0288fa004dab302ca3c0a8f" }, "plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" }, + "rose-pine": { "branch": "main", "commit": "9504524e5ed0e326534698f637f9d038ba4cd0ee" }, "smart-splits.nvim": { "branch": "master", "commit": "09796a7ad0776c92518e0afae8688ef8d7f720e6" }, "telescope.nvim": { "branch": "master", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" }, "tree-sitter-manager.nvim": { "branch": "main", "commit": "fa63bc63ae08b661843d9976a43becfbd3daf76c" }, diff --git a/.config/nvim/lua/plugins/colors.lua b/.config/nvim/lua/plugins/colors.lua index d78eb35..c4e9ccc 100644 --- a/.config/nvim/lua/plugins/colors.lua +++ b/.config/nvim/lua/plugins/colors.lua @@ -1,36 +1,42 @@ +-- Custom colorscheme application function that disables background colors for +-- Normal and NormalFloat highlights function ApplyColorscheme(color) - color = color or "default" - vim.cmd.colorscheme(color) + color = color or "default" + vim.cmd.colorscheme(color) - vim.api.nvim_set_hl(0, "Normal", { bg = "none" }) - vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" }) + vim.api.nvim_set_hl(0, "Normal", { bg = "none" }) + vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" }) end + return { - { - "catppuccin/nvim", - name = "catppuccin", - priority = 1000, - config = function() - require('catppuccin').setup({ - term_colors = false, - transparent_background = true, - styles = { - comments = {}, - conditionals = {}, - loops = {}, - functions = {}, - keywords = {}, - strings = {}, - variables = {}, - numbers = {}, - booleans = {}, - properties = {}, - types = {}, - }, - }) - - ApplyColorscheme("catppuccin") - end - }, + { + "catppuccin/nvim", + enabled = false, + lazy = false, + name = "catppuccin", + priority = 1000, + opts = { + transparent_background = true, + }, + config = function(_, opts) + require("catppuccin").setup(opts) + vim.cmd("colorscheme catppuccin") + end + }, + { + "rose-pine/neovim", + enabled = true, + lazy = false, + name = "rose-pine", + priority = 1000, + opts = { + styles = { + transparency = true + }, + }, + config = function(_, opts) + require("rose-pine").setup(opts) + vim.cmd("colorscheme rose-pine") + end + }, } -