From 618a923165c7deece74dc4a7913719159e7ee730 Mon Sep 17 00:00:00 2001 From: Nicolai Van der Storm Date: Tue, 17 Oct 2023 09:26:32 +0200 Subject: [PATCH] added catppuccin to nvim --- nvim/init.lua | 5 +- nvim/lua/lazy.lua | 3 ++ nvim/lua/plugins/colorschemes/catppuccin.lua | 49 ++++++++++++++++++++ 3 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 nvim/lua/plugins/colorschemes/catppuccin.lua diff --git a/nvim/init.lua b/nvim/init.lua index 635646e..1e7a750 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -1,2 +1,5 @@ --- Plugin Managers --- -require(".lazy") \ No newline at end of file +require(".lazy") + +--- Colorschemes --- +vim.cmd("runtime! lua/plugins/colorschemes/*.lua") \ No newline at end of file diff --git a/nvim/lua/lazy.lua b/nvim/lua/lazy.lua index e70ee09..5e26ac7 100644 --- a/nvim/lua/lazy.lua +++ b/nvim/lua/lazy.lua @@ -17,6 +17,9 @@ vim.opt.rtp:prepend(lazypath) local plugins = { --- Lazy --- "folke/lazy.nvim" --- Lazy will manage itself + + --- Colorschemes --- + { "catppuccin/nvim", name = "catppuccin", lazy = false, priority = 1000 }, } local opts = {} diff --git a/nvim/lua/plugins/colorschemes/catppuccin.lua b/nvim/lua/plugins/colorschemes/catppuccin.lua new file mode 100644 index 0000000..b71d444 --- /dev/null +++ b/nvim/lua/plugins/colorschemes/catppuccin.lua @@ -0,0 +1,49 @@ +local status, plugin = pcall(require, 'catppuccin') +if not status then + print('Plugin Error: ', plugin) + return +end + +plugin.setup({ + flavour = "mocha", -- latte, frappe, macchiato, mocha + background = { -- :h background + light = "latte", + dark = "mocha", + }, + transparent_background = false, + show_end_of_buffer = false, -- show the '~' characters after the end of buffers + term_colors = false, + dim_inactive = { + enabled = false, + shade = "dark", + percentage = 0.15, + }, + no_italic = false, -- Force no italic + no_bold = false, -- Force no bold + no_underline = false, -- Force no underline + styles = { + comments = { "italic" }, + conditionals = { "italic" }, + loops = {}, + functions = {}, + keywords = {}, + strings = {}, + variables = {}, + numbers = {}, + booleans = {}, + properties = {}, + types = {}, + operators = {}, + }, + color_overrides = {}, + custom_highlights = {}, + integrations = { + cmp = true, + gitsigns = true, + nvimtree = true, + telescope = true, + notify = false, + mini = false, + -- For more plugins integrations please scroll down (https://github.com/catppuccin/nvim#integrations) + }, + }) \ No newline at end of file