Giter VIP home page Giter VIP logo

Comments (2)

jasonlong avatar jasonlong commented on June 9, 2024 1

Thanks for the detailed response, @svengreb. I definitely wouldn't expect color variable overrides to be a supported feature. I was just curious if there was a way to not have to maintain a fork for my preferred grays.

I'll go ahead and close this out.

from vim.

svengreb avatar svengreb commented on June 9, 2024

Hi @jasonlong 👋

Even if the plugin is already very dynamic in terms of certain themes configurations, one of the main points is exactly the use of the Nord color palette as it is. Otherwise this project would only be a kind of theme plugin template that can be used with any color palette (such projects exist, e.g. theme generators or lush.nvim). The syntax highlighting groups are especially optimized for the use with the Nord colors to achieve a consistent style across other Nord ports (e.g. JetBrains IDEs, VS Code etc.).

While global highlighting groups can be customized to override styles defined by this plugin the variables prefixed with s: are locally scoped to the script file in which they are defined 1 2 (also see :help internal-variables for details in the official Vim documentation). This means they are only accessible when the plugin gets read while variables like highlighting groups are scoped to the global namespace by default (g:) and can therefore be modified, e.g. via augroup blocks.

In short: overriding Nord colors was never a goal for this plugin since it is optimized for the color palette. At the moment I also don't see any real benefit in implementing such a configuration, but the upcoming Neovim specific "Nord Neovim" port could make this possible because the possibilities with Lua are more flexible.

Footnotes

  1. https://learnvimscriptthehardway.stevelosh.com/chapters/20.html

  2. https://developer.ibm.com/articles/l-vim-script-1/#values-and-variables

from vim.

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.