From 86ef795ec0e33739c62d2e4a7aea706f6a96a24d Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sat, 17 Dec 2022 17:53:20 +0300 Subject: feat(nvim): switch colorscheme to catppuccin --- .config/nvim/lua/plugin_settings.lua | 71 ++++++++++++++++++++---------------- .config/nvim/lua/plugins.lua | 2 +- 2 files changed, 40 insertions(+), 33 deletions(-) (limited to '.config/nvim/lua') diff --git a/.config/nvim/lua/plugin_settings.lua b/.config/nvim/lua/plugin_settings.lua index 2149db0..55a4eae 100644 --- a/.config/nvim/lua/plugin_settings.lua +++ b/.config/nvim/lua/plugin_settings.lua @@ -51,7 +51,7 @@ local conditions = { require'lualine'.setup { options = { icons_enabled = true, - theme = 'rose-pine', + theme = "catppuccin", section_separators = { left = '', right = '' }, component_separators = { left = '', right = '' }, }, @@ -544,38 +544,45 @@ require('gitsigns').setup { require('Comment').setup() -- }}} Comment.nvim -- --- Rose Pine {{{ -- -require('rose-pine').setup({ - dark_variant = 'main', - bold_vert_split = false, - dim_nc_background = false, - disable_background = false, - disable_float_background = false, - disable_italics = true, - groups = { - border = 'highlight_med', - comment = 'muted', - link = 'gold', - punctuation = 'subtle', - - error = 'love', - hint = 'iris', - info = 'foam', - warn = 'gold', - - headings = { - h1 = 'iris', - h2 = 'foam', - h3 = 'rose', - h4 = 'gold', - h5 = 'pine', - h6 = 'foam', - } - } +-- catppuccin {{{ -- +require("catppuccin").setup({ + flavour = "mocha", -- latte, frappe, macchiato, mocha + background = { -- :h background + light = "latte", + dark = "mocha", + }, + transparent_background = false, + term_colors = false, + no_italic = true, -- force no italic + no_bold = false, -- force no bold + integrations = { + barbar = true, + cmp = true, + fidget = true, + gitsigns = true, + leap = true, + nvimtree = true, + telescope = true, + treesitter = true, + vimwiki = true, + which_key = true, + }, + native_lsp = { + enabled = true, + underlines = { + errors = { "underline" }, + hints = { "underline" }, + warnings = { "underline" }, + information = { "underline" }, + }, + + }, }) --- set colorscheme after options -vim.cmd('colorscheme rose-pine') --- }}} Rose Pine -- + +-- setup must be called before loading +vim.cmd.colorscheme "catppuccin" + +-- }}} catppuccin -- -- dial.nvim {{{ -- diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 9855045..427f619 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -149,7 +149,7 @@ return require('packer').startup(function(use) -- tabline use {'romgrk/barbar.nvim', wants = 'nvim-web-devicons'} -- colour theme of the $CURRENT_YEAR - use 'rose-pine/neovim' + use { "catppuccin/nvim", as = "catppuccin" } -- abbreviation reminder use { -- cgit v1.2.3-70-g09d2