nvim: use rose-pine theme

This commit is contained in:
2026-04-14 09:51:12 +02:00
parent 8bad3cc890
commit c822c45ea0
2 changed files with 38 additions and 31 deletions

View File

@@ -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" },

View File

@@ -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
},
}