Giter Site home page Giter Site logo

Comments (6)

TayTTo avatar TayTTo commented on August 21, 2024

Sorry, the first image is not correct. Here it is.
Screenshot 2024-08-05 183022

from everforest.

antoineco avatar antoineco commented on August 21, 2024

Would you happen to have another light colorscheme you can test with and post the screenshot, so that I can better understand whether the problem comes from Vim or PowerShell?

from everforest.

TayTTo avatar TayTTo commented on August 21, 2024

Would you happen to have another light colorscheme you can test with and post the screenshot, so that I can better understand whether the problem comes from Vim or PowerShell?

Yes, it also happened with other light colorscheme like solarized and even the default theme of Vim, note that I use pwsh as the terminal, but I can fix it by adding these line to the vimrc file:
" Setting terminal's color

let g:terminal_ansi_colors = [
    \ '#fdf6e3', '#dc322f', '#859900', '#b58900',
    \ '#268bd2', '#d33682', '#2aa198', '#657b83',
    \ '#ffa07a', '#cb3b16', '#8da101', '#dfa000',
    \ '#839496', '#6c71c4', '#93a1a1', '#002b36']

highlight Terminal guibg='#fdf6e3' guifg='#657b83'

from everforest.

antoineco avatar antoineco commented on August 21, 2024

PowerShell's default Get-ChildItem colors are notoriously bad and not adapted to light terminals. Tweaking things inside the colorscheme is somewhat possible, but feels like a stretch (this is a Vim colorscheme, after all).

Instead, I recommend configurting your shell, for example by installing a small PowerShell module: https://stackoverflow.com/a/30788506/4716370. Using that approach, any color configured through Vim should fit nicely in the output of PowerShell commands.

from everforest.

TayTTo avatar TayTTo commented on August 21, 2024

I have successful config it, the solution is based on this discussion: " https://vi.stackexchange.com/questions/25456/how-can-i-change-the-colorscheme-of-the-vim-terminal-buffer ".
This is my solution for it:

let g:terminal_ansi_colors = [
    \ '#fdf6e3', '#dc322f', '#859900', '#b58900',
    \ '#268bd2', '#d33682', '#2aa198', '#657b83',
    \ '#ffa07a', '#cb3b16', '#8da101', '#dfa000',
    \ '#839496', '#6c71c4', '#93a1a1', '#002b36']

highlight Terminal guibg='#fdf6e3' guifg='#657b83'

image

Still keep the colorscheme and also make the directory readable in visual mode. Reply to me if my solution makes the contribution.

from everforest.

antoineco avatar antoineco commented on August 21, 2024

It's great that it works for you, and I appreciate you sharing your solution.

However such changes can't be accepted here because they don't apply universally. What works in PowerShell will not work in a Linux shell, mainly because the colors used here deviate from the usual ANSI colors semantics (on top of being off palette):

Screenshot 2024-08-09 at 22 10 58

Here is what things look like in a Linux shell with Everforest's defaults:
Screenshot 2024-08-09 at 22 32 58

The fact that it works for 1 user in 1 very specific config (Windows + PowerShell + gVim + light mode) doesn't make it reasonable to enforce on everyone. A colorscheme's defaults ought to remain as universal as possible. The strange colors you are observing are caused by your shell being misconfigured, and can therefore be reproduced with any Vim colorscheme. Luckily, the beauty of Vim is that you can configure to you preferences, like you did.

As closing words, I am cross-referencing simialr issues that were opened in the past:

from everforest.

Related Issues (20)

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.