Giter VIP home page Giter VIP logo

vim's Introduction

Logo
Catppuccin for Vim

โœจ Integrations

Usage

Note: To get the expected visuals, you need to insert set termguicolors within your .vimrc file.

Manually

  1. Clone this repository
  2. Put the colors folder inside your .vim (or if the colors folder already exists, move all the catppuccin palettes inside it)
  3. When Vim is running use :colorscheme catppuccin_ followed by the flavor name (e.g. :colorscheme catppuccin_mocha)

Vim-Plug

Plug 'catppuccin/vim', { 'as': 'catppuccin' }

โœจ Integrations setup

lightline

  1. Download the plugin via your plugin manager or manually
  2. Set the colorscheme by inserting the following line in your .vimrc:
let g:lightline = {'colorscheme': 'catppuccin_mocha'}
  1. Now that lightline is good to go, you can use set noshowmode to hide the default mode showcase since now it will be displayed in the plugin

airline

Airline should automatically choose the correct theme. If it does not you can force it by inserting the following line in your .vimrc:

let g:airline_theme = 'catppuccin_mocha'

๐Ÿ™‹ FAQ

  • Q: "Why can't I see all the color groups correctly?"

    A: For better syntax highlighting you should download plugins that allow you to see all color groups for each language in question.

๐Ÿ’ Thanks to

ย 

Copyright ยฉ 2021-present Catppuccin Org

vim's People

Contributors

m3nny avatar maxjcohen avatar nekowinston avatar pocco81 avatar razimantv avatar sgoudham avatar tilegg avatar unindented avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vim's Issues

Trouble with download branch from vimplug

Hello,

When I try to install this theme in vim with vimplug I get this error:

- Finishing ... Done!                                                                                               |~                                                                                                                  
x vim:                                                                                                              |~                                                                                                                  
    fatal: invalid reference: master 

Checking your repository, the main branch is called main, not master.. maybe that's the problem.

Regards!

The theme color is displayed abnormally

I configured it according to the instructions in the README, and the terminal I use is alacirtty. The display is as follows, the colors look very strange, as well as the color of lightline.

image

What am I doing wrong? Thanks.

Weird screen color on MacOS vim

Hi,

Thanks for providing nice color scheme.
It works well with the vim on tmux environment. However, when I just run vim without tmux, then it prints weird color as shown on the below.

image

This is my vimrc

colorscheme catppuccin_mocha

" For lightline                                                                                                                                                                                                                                                                          
let g:lightline = {                                                                                                                                                                                                                                                                      
      \ 'colorscheme' : 'catppuccin_mocha',                                                                                                                                                                                                                                              
      \ 'active': {                                                                                                                                                                                                                                                                      
      \   'left': [ [ 'mode', 'paste' ],                                                                                                                                                                                                                                                 
      \             [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]                                                                                                                                                                                                                
      \ },                                                                                                                                                                                                                                                                               
      \ 'component_function': {                                                                                                                                                                                                                                                          
      \   'gitbranch': 'gitbranch#name'                                                                                                                                                                                                                                                  
      \ },                                                                                                                                                                                                                                                                               
      \ }                                                                                                                                                                                                                                                                                
set laststatus=2     

When I use tmux and vim it works well as below.
image

Incorrect spelling highlights are not legible

I am using vim 8.0.1763 on RHEL 8.8. Colour scheme is catppuccin_macchiato.

The different spell check highlights are not legible. The highlighted text is illegible in all dark variants -- frappe, macchiato, and mocha. Frappe looks better though. The screeshot below was with
:setlocal spell spelllang=en_gb.

Macchiato:
illegible highlights

Latte:
latte

What's required to make the text legible?

Thanks!

Requires termguicolors

Hi, great port, just wanted to add that it requires setting the termguicolors option in vim to get the expected visuals. Cheers.

Why set cursorline option in colorscheme

Thank you for a pleasant colorscheme.

I am wondering why a colorscheme sets options like cursorline?
Shouldn't it be up to users to enable or disable this option?

In my vimrc, I explicitly disable it and was surprised that it got enabled after installing the theme. :verbose set cursorline? revealed it was done by the colorscheme.

I can submit a PR to fix this, but wanted to inquire the maintainer(s)/contributor(s)/community opinions.

Highlight groups with guifg=#ffffff unreadable in latte theme

There are quite some highlight groups that have guifg=#ffffff (i.e. white). These are practically unreadable in the latte theme, due to the light background.

I have, for now, modified my vimrc to link all these groups to other groups, but a proper fix is desirable (also because my 'quick links' might not adhere to the guidelines or other editors).

    exec 'highlight! link Delimiter Special'
    exec 'highlight! link Tag Special'
    exec 'highlight! link SpecialChar Special'
    exec 'highlight! link Precondit Comment'
    exec 'highlight! link SpecialComment Comment'
    exec 'highlight! link Exception Error'
    exec 'highlight! link StatusLineTerm StatusLine'
    exec 'highlight! link StatusLineTermNC StatusLineNC'
    exec 'highlight! link Terminal Normal'
    exec 'highlight! link Ignore Comment'
    exec 'highlight! link Define Label'
    exec 'highlight! link Macro Label'
    exec 'highlight! link debugPC DiffText'
    exec 'highlight! link debugBreakpoint DiffDelete'
    exec 'highlight Underlined guifg=' s:GetColorFromHl('Normal', 'fg', 'gui') 'ctermfg=' s:GetColorFromHl('Normal', 'fg', 'cterm')

The last line uses some custom functions I have written, but essentially means: "Underlined" is "Normal" but with underlines ๐Ÿ˜„

Some colors don't look right

So I've noticed some odd colors.

Configuration:
iTerm2 Build 3.4.19
tmux 3.3a
vim 9.0.1650 + airline lightline
Theme is catppuccin_mocha but it's the same with catppuccin_macchiato

See examples below:

vim errors seem hard to read:
vim-error-catppucin

diffs also seem hard to read (especially read lines)
vim-diff-catppucin

lightline airline seem a bit off, especially with tmux's status line next to it:
vim-airline-catppucin

Now I wonder if it's an issue on my machine (maybe something is not configured properly) or it looks like it should be. ๐Ÿค”

Line number in formatting error bar isn't visible

I'm using vim with the prettier/vim-prettier plugin. Anytime I save a file, it tries to run prettier and reformat the file.

I've discovered that with all the catppuccin themes, the error bar that shows a line number with some syntax error doesn't show the line number information correctly. Everything else is correct but this one small section isn't right.

I normally run vim within tmux using szh and iterminal 2 on OSX. Ive confirmed this problem exists both in and not in tmux and in zsh along with bash. I tried Terminal.app as well but my config there is off so the theme looks like a mess from the start so I'm not sure if this is an iterm or terminal issue.

Attached is a screenshot of what the error looks like.

Any suggestions on what setting I need to change to get this working right?

Screenshot 2023-05-18 at 8 20 04 AM

Unprintable characters blend in

With this theme enabled, unprintable characters blend in with the regular ones.
You can test this by setting listchars:

set listchars=tab:ยปยป,trail:ยท,nbsp:~

sonokai (atlantis):
image
catppuccin_macchiato:
image

I don't seem able to override the Pmenu background color.

The pop-up diagnostics screen has a background too close to Catppuccin's background, so I'd like to make it lighter.

My config for neovim 0.9.0 and catpuccin ad63055 is:

{
  "catppuccin/nvim",
  name = "catppuccin",
  priority = 1000,
  integrations = {
    mason = true,
  },
  custom_highlights = function(colors)
    return {
      Pmenu = { bg = "#808000" },
    }
  end
},

But it has no effect, and the setting doesn't even take:

image

I also get no effect with an :hi Pmenu guibg=#808000 either.

The weird thing is that the :hi command does have an effect if I use the built-in themes (eg. blue or dalek).

User error?

theme not showing up

I followed all the steps, and still not seeing the theme.

Here is how I set it up:

inside .vim I have this repo, so ls .vim gives:

assets  autoload  colors  LICENSE  README.md

and then in .vimrc I set colorscheme. here is my .vimrc file:

set termguicolors
colorscheme catppuccin_frappe
set paste

I use vim 8.0.

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Aug  2 2022 07:47:17)

Add a .catppuccin.yaml

It seems you don't have a .catppuccin.yaml. Please create one. Thanks! (This issue was auto-generated)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.