-
I am trying this for the first time I tried both to with the config command provided and without it. same result the colors are off. can you help me please ? local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
local plugins = {
{ "catppuccin/nvim", name = "catppuccin", priority = 1000 },
{'nvim-telescope/telescope.nvim', tag = '0.1.6', dependencies = { 'nvim-lua/plenary.nvim' }},
{"nvim-treesitter/nvim-treesitter", build = ":TSUpdate"},
}
local opts = {}
require("Lazy").setup(plugins, opts)
local builtin = require("telescope.builtin")
vim.keymap.set('n','<c-p>',builtin.find_files,{})
vim.keymap.set('n','<leader>fg',builtin.live_grep,{})
local configs = require("nvim-treesitter.configs")
configs.setup({
ensure_installed = { "c","cpp", "matlab", "lua", "vim", "vimdoc" },
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
})
require("catppuccin").setup({
flavour = "auto", -- latte, frappe, macchiato, mocha
background = { -- :h background
light = "latte",
dark = "mocha",
},
transparent_background = false, -- disables setting the background color.
show_end_of_buffer = false, -- shows the '~' characters after the end of buffers
term_colors = false, -- sets terminal colors (e.g. `g:terminal_color_0`)
dim_inactive = {
enabled = false, -- dims the background color of inactive window
shade = "dark",
percentage = 0.15, -- percentage of the shade to apply to the inactive window
},
no_italic = false, -- Force no italic
no_bold = false, -- Force no bold
no_underline = false, -- Force no underline
styles = { -- Handles the styles of general hi groups (see `:h highlight-args`):
comments = { "italic" }, -- Change the style of comments
conditionals = { "italic" },
loops = {},
functions = {},
keywords = {},
strings = {},
variables = {},
numbers = {},
booleans = {},
properties = {},
types = {},
operators = {},
-- miscs = {}, -- Uncomment to turn off hard-coded styles
},
color_overrides = {},
custom_highlights = {},
default_integrations = true,
integrations = {
cmp = true,
gitsigns = true,
nvimtree = true,
treesitter = true,
notify = false,
mini = {
enabled = true,
indentscope_color = "",
},
-- For more plugins integrations please scroll down (https://github.com/catppuccin/nvim#integrations)
},
})
-- setup must be called before loading
vim.cmd.colorscheme "catppuccin" update: I noticed when I highlight all using cmd+a, the color seemed to be ok. details: Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Answered by
mrtnvgr
May 29, 2024
Replies: 1 comment 1 reply
-
https://github.com/catppuccin/nvim#colors-doesnt-match-preview-screenshots |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
bsyy6
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/catppuccin/nvim#colors-doesnt-match-preview-screenshots