GithubHelp home page GithubHelp logo

drewtempelmeyer / palenight.vim Goto Github PK

View Code? Open in Web Editor NEW
648.0 7.0 88.0 224 KB

Soothing color scheme for your favorite [best] text editor

License: MIT License

Vim Script 100.00%
vim vim-colors material magic palenight colorscheme vimconfig vim-plugin

palenight.vim's Introduction

palenight.vim

A dark color scheme for Vim/Neovim based off the Material Pale Night color scheme. Much of the work is based on the lovely onedark.vim color scheme.

Installation

Using vim-plug (modify this to work with your Vim package manager of choice):

Plug 'drewtempelmeyer/palenight.vim'

Usage

In your wonderfully organized Vim (~/.vimrc) or Neovim (.config/nvim/init.vim) configuration, place the following two lines:

set background=dark
colorscheme palenight

To configure lightline, add the following line:

let g:lightline = { 'colorscheme': 'palenight' }

To configure airline, add the following line:

let g:airline_theme = "palenight"

True Colors

To provide the best user experience possible, I recommend enabling true colors. To experience the blissfulness of your editor's true colors, place this in your .vimrc or ~/.config/nvim/init.vim file:

if (has("nvim"))
  "For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 >
  let $NVIM_TUI_ENABLE_TRUE_COLOR=1
endif

"For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 >
"Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd >
" < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 >
if (has("termguicolors"))
  set termguicolors
endif

Italics

Italics are a fantastic way to improve the appearance of your code. Italics will do what they can, but, as they say, "you can't polish a 💩." (Although MythBusters busted this). Digressing here, so place this into your config:

" Italics for my favorite color scheme
let g:palenight_terminal_italics=1

Overriding Colors

Overriding palenight's colors are supported through setting the g:palenight_color_overrides variable. See palenight.vim for a list of colors that may be overriden. You must provide gui, cterm, and cterm16 values for each.

Example: Overriding the background color to pure black

let g:palenight_color_overrides = {
\    'black': { 'gui': '#000000', "cterm": "0", "cterm16": "0" },
\}

Contributors

The lovely people that have contributed to palenight.vim

palenight.vim's People

Contributors

alxhnr avatar drewtempelmeyer avatar ishchow avatar jxs avatar ma27 avatar mreishus avatar quangkr avatar qxxxb avatar rodrigore avatar skydevht avatar tamago324 avatar tombruijn 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  avatar  avatar

palenight.vim's Issues

Two CSS sections?

I was looking at the language specific color settings, and noticed that there are two (1, 2) CSS sections with slight overlap. Is this due to some quirk?

Improved Pmenu colors

Hi, i was trying to replicate the same colors of the Code version when the pop menu for completion appers. Code version looks like this:
image

image

The left side show the new version, and the right version show the actual version of palenight.vim

I was planning to do a pull request but I only use the white color of this plugin and I added 3 colors that are not on the variables (some purple variations), so not sure what you think about to add new variable colors or only use the hexadecimal values.

This is the code that I use in order to achieve the left side.

hi Pmenu guibg=#212333
hi PmenuSel guibg=#6A3EB5 guifg=#bfc7d5
hi PmenuSbar guibg=#352B59 guifg=#352B59
hi PmenuThumb guibg=#352B59 guifg=#352B59

tmux support

This colorscheme is the best, but in tmux it has doesn't look like in the normal terminal (doesn't look bad, but is different).

Some code is highlighted too dark in view of mappings

While viewing the list of all mappings - opened by :map for example - parts of the code are highlighted too dark and the contrast is too low, especially the <...> ones (keys and file paths):

image

While it looks like this in default theme:

image

Anyway to fix this?

Red conflict with error

Loving this theme!

One small tweak - it seems errors (detected by ALE) are highlighted with the same color as a default.

Any suggestions for improving this, even if just a suggestion for my local config?

See here, there's an error on line 14:

Thanks!

screenshot_2018-12-04_17-02-15

Wrong color on iterm

Hi, thanks for creating this theme

I have an issue with the color, it looks different compared to the screenshot.

I have enabled the true color on my terminal.
CleanShot 2021-12-23 at 19 10 12@2x

❯ awecho $TERM
xterm-256color

CleanShot 2021-12-23 at 19 06 56@2x

vim config

set termguicolors
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"

set background=dark
colorscheme palenight

if (has("nvim"))
  let $NVIM_TUI_ENABLE_TRUE_COLOR=1
endif

if (has("termguicolors"))
  set termguicolors
endif

`set termguicolors` automatically?

I only just realized that my background didn't have the colors it should have anymore and found my solution in #34 (as I had the same issue), but before that I realized that it also worked when I switch to another colorscheme first (in my case onedark.nvim), which at first made me believe that it had something to do with my config or whatever, until I finally found the issue.

Anyways, after knowing the solution, I checked the termguicolors option before and after activating the OneDark theme, and it seems to automatically enable termguicolors. Since this issue seems to be a frequent one (I already mentioned #34 and assume #35 was the same issue), maybe it would be a good idea to also set termguicolors automatically when palenight is loaded (if available)?

Sadly, I don't know how to do it, but it seems to be possible.

Colorscheme

The colorscheme appears to not be palenight. When i type :colorscheme, it says the theme is palenight.
image

Cannot use airline theme without italics

Hello,

I tried using the airline theme without having the g:palenight_terminal_italics activated and Airline tells me there is an error in the theme. I unfortunately do not know enough to understand how to fix the code, but I figured I would notify you of the issue.
If it can't be fixed, it would be nice to at least warn the users; it took me a while to realize it was the italics not being activated that tripped up Airline.

Termite Colors

Hey! I love this vim theme and have been using it for awhile now, but I hate the way it looks with my terminal (Termite). Is there a Termite theme that uses the same color layout as this theme or could I have the colors for everything like the background, RBG colors, etc. so I could make my own theme. Thanks c:

Add support for termdebug

Recent versions of Vim and Neovim ship termdebug, a plugin for integrating gdb. The default colors look off. The sign column contains breakpoints, while the blue line shows where the program is paused:

palenight

Suggestion

Termdebug has only two highlighting groups:

call s:h("debugBreakpoint", { "fg": s:blue_purple })
call s:h("debugPC", { "bg": s:blue_purple, "fg": s:black })

palenight-fixed

TypeScript optional chaining breaks syntax highlighting

Apologies if this is not an issue of palenight but of vim itself, or something like that. I don't know much about syntax highlighting internals.

I noticed that the optional chaining of TypeScript breaks the syntax highlighting:

grafik

I'm on neovim 0.4.3:

nvim --version
NVIM v0.4.3
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/tmp/neovim-20191107-85913-1wbgqz6/neovim-0.4.3/build/config -I/tmp/neovim-20191107-85913-1wbgqz6/neovim-0.4.3/src -I/usr/local/include -I/tmp/neovim-20191107-85913-1wbgqz6/neovim-0.4.3/deps-build/include -I/usr/local/opt/gettext/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/tmp/neovim-20191107-85913-1wbgqz6/neovim-0.4.3/build/src/nvim/auto -I/tmp/neovim-20191107-85913-1wbgqz6/neovim-0.4.3/build/include
Übersetzt von [email protected]

Features: +acl +iconv +tui
See ":help feature-compile"

          System-vimrc-Datei: "$VIM/sysinit.vim"
     Voreinstellung für $VIM: "/usr/local/Cellar/neovim/0.4.3/share/nvim"

Run :checkhealth for more info

Please let me know if you need more info or if I can help with this in any way.

E185: Cannot find colour scheme 'palenight'

I'm not sure what I did wrong but here's my full vim config, I have use :PlugInstall to no avail

Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged'
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes

" Theme; fetches https://github.com/drewtempelmeyer/palenight.vim
Plug 'drewtempelmeyer/palenight.vim'

let g:lightline = { 'colorscheme': 'palenight' }
let g:airline_theme = "palenight"

if (has("nvim"))
  let $NVIM_TUI_ENABLE_TRUE_COLOR=1
endif

if (has("termguicolors"))
  set termguicolors
endif

set background=dark
colorscheme palenight

Background color

Hey there!

I installed palenight, and I have the following issue:

on the screenshot from his repo main page, the background color seems kinda dark blue-ish, very pleasant, but in my terminal it seems pretty much just dark grey.
image

I'm using xfce terminal on xubuntu 20.04

treesitter support

Nice theme.
It would be even better with Treesitter support.

Treesitter defines the following highlight groups (the color definitions are from Onedark).

hi! TSError        ctermfg=203 guifg=#f44747
hi! TSPunctDelimiter ctermfg=249 guifg=#abb2bf
hi! TSPunctBracket ctermfg=249 guifg=#abb2bf
hi! TSPunctSpecial ctermfg=249 guifg=#abb2bf
hi! TSConstant     ctermfg=75 guifg=#61afef
hi! TSConstBuiltin ctermfg=173 guifg=#d19a66
hi! TSConstMacro   ctermfg=73 guifg=#56b6c2
hi! TSStringRegex  ctermfg=114 guifg=#98c379
hi! TSString       ctermfg=114 guifg=#98c379
hi! TSStringEscape ctermfg=73 guifg=#56b6c2
hi! TSCharacter    ctermfg=114 guifg=#98c379
hi! TSNumber       ctermfg=173 guifg=#d19a66
hi! TSBoolean      ctermfg=173 guifg=#d19a66
hi! TSFloat        ctermfg=114 guifg=#98c379
hi! TSAnnotation   ctermfg=180 guifg=#e5c07b
hi! TSAttribute    ctermfg=73 guifg=#56b6c2
hi! TSNamespace    ctermfg=201 guifg=#ff00ff
hi! TSFuncBuiltin  ctermfg=75 guifg=#61afef
hi! TSFunction     ctermfg=75 guifg=#61afef
hi! TSFuncMacro    ctermfg=180 guifg=#e5c07b
hi! TSParameter    ctermfg=73 guifg=#56b6c2
hi! TSParameterReference ctermfg=73 guifg=#56b6c2
hi! TSMethod       ctermfg=75 guifg=#61afef
hi! TSField        ctermfg=168 guifg=#e06c75
hi! TSProperty     ctermfg=180 guifg=#e5c07b
hi! TSConstructor  ctermfg=73 guifg=#56b6c2
hi! TSConditional  ctermfg=175 guifg=#c586c0
hi! TSRepeat       ctermfg=175 guifg=#c586c0
hi! TSLabel        ctermfg=75 guifg=#61afef
hi! TSKeyword      ctermfg=175 guifg=#c586c0
hi! TSKeywordFunction ctermfg=175 guifg=#c586c0
hi! TSKeywordOperator ctermfg=175 guifg=#c586c0
hi! TSOperator     ctermfg=249 guifg=#abb2bf
hi! TSException    ctermfg=175 guifg=#c586c0
hi! TSType         ctermfg=75 guifg=#61afef
hi! TSTypeBuiltin  ctermfg=75 guifg=#61afef
hi! TSStructure    ctermfg=201 guifg=#ff00ff
hi! TSInclude      ctermfg=175 guifg=#c586c0
hi! TSVariable     ctermfg=73 guifg=#56b6c2
hi! TSVariableBuiltin ctermfg=180 guifg=#e5c07b
hi! TSText         ctermfg=226 guifg=#ffff00
hi! TSStrong       ctermfg=226 guifg=#ffff00
hi! TSEmphasis     ctermfg=226 guifg=#ffff00
hi! TSUnderline    ctermfg=226 guifg=#ffff00
hi! TSTitle        ctermfg=226 guifg=#ffff00
hi! TSLiteral      ctermfg=226 guifg=#ffff00
hi! TSURI          ctermfg=226 guifg=#ffff00
hi! TSTag          ctermfg=168 guifg=#e06c75
hi! TSTagDelimiter ctermfg=241 guifg=#5c6370

Native Vim installation conflict

Hi there, great theme!

I was using your theme on one of my project and I figured out I would use it on my own installation.

I already had a ~/.vimrc file with all my preferences. But installing with the native Vim system is conflicting with the current userland settings. A bunch of errors appear like:

$ vim something.txt
...
line  481:
E121: Undefined variable: s:green
E116: Invalid arguments for function <SNR>13_h
...

Here is the following installation process:

$ git clone https://github.com/drewtempelmeyer/palenight.vim ~/.vim/pack/bundle/start/

What has solved my issue was to move my current preferences to make it look like it is also a Vim plugin like so:

$ mkdir -p ~/.vim/pack/bundle/start/default/plugin
$ mv ~/.vimrc ~/.vim/pack/bundle/start/default/plugin/default.vim

First line is saying create a directory default with its subdirectory plugin inside ~/.vim/pack/bundle/start (Where all Vim 8+ plugins live). The second line is saying Move and rename my file ~/.vimrc to the folder I just created.

Maybe this has nothing to do with your plugin but I wanted to open this issue to first help other people encountering this issue and second maybe see if there is something we can do to solve this issue using the native Vim plugin installation system.

Thanks!

E185: Cannot find color scheme 'palenight'

Inside my init.vim I have

set background=dark
colorscheme palenight

if (has("termguicolors"))                                                               
  set termguicolors                                                                     
endif

And have ran :PlugInstall which ran fine, but I get the error E185: Cannot find color scheme 'palenight' when opening vim.

High lighted text color is same as background color in fzf

As you can see in below image

gif

When I'm searching files using fzf-vim (with ag) Highlight text color is same as background color and that is very hard to see. Is there any way to change it?

And thank you for your awesome color scheme

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.