Comments (7)
I think that consistency is important too.
About Vim function, it's my mistake 😅
Vim function is linked to Statement
(it's blue in Iceberg) group by default: vimFuncKey -> vimCommand -> Statement
So it is displayed in blue color. I'll fix it later!
Sending PR or creating issue about inconsistency is welcome :)
from iceberg.vim.
I submitted #32 to fix.
from iceberg.vim.
As I've been trying to normalize the syntax highlighting across several languages, I'm torn on whether or not function invocations should be highlighted. What do you think? To give a concrete example, here is a screenshot of Go code normalized using your guidelines (as I have interpreted them):
And here is an alternate version where I experimented with highlighting function invocations and changing variable definitions to green to make them easy to spot:
Function invocation highlighting is beneficial when you have a series of function calls within function calls such as:
rand.Seed(time.Now().Unix())
From a legibility point of view, it makes it much easier to read code. The only problem is if I use cyan for this function invocation, then there is too much cyan, which require tweaking maybe the color of variable definitions to green perhaps as shown in the alternate version above.
I would be very appreciative of your opinion on the matter as it would impact the PR I've submitted.
from iceberg.vim.
As a first step, I re-organized whole highlighting rules in b688907.
Because your changes and mine affect too wide range, I can't merge them...really sorry 😢
from iceberg.vim.
After much thought, I carefully resolved conflicts and merged your changes (#32) to the latest files. In the process, I modified some definitions in terms of consistency:
-
jsDestructuringBlock
should be highlighted asNormal
(same as other variables) -
jsFuncArgs
,jsVariableDef
should be highlighted asNormal
(same as other languages) -
jsTemplateExpression
should be highlighted asNormal
(because it should be highlighted as same as normal expressions)// Example: `foo` should be highlighted as `Normal` `${foo['bar']}`
Feel free to reopen the issue if there are any problems.
from iceberg.vim.
Ah I forgot to reply your suggestion, sorry...
From a legibility point of view, it makes it much easier to read code. The only problem is if I use cyan for this function invocation, then there is too much cyan, which require tweaking maybe the color of variable definitions to green perhaps as shown in the alternate version above.
As I said in this comment, at the moment, I think that current highlightings have enough readability so using less colors is better. But I am hesitating about which one is really good.
from iceberg.vim.
Feel free to reopen the issue or create new one if you find new inconsistencies.
from iceberg.vim.
Related Issues (20)
- `TabLine` and `StatusLineNC` highlight groups have very low contrast
- Floating windows decoration highlighting problem HOT 4
- Can I use this on ConEmu / Cmder HOT 1
- Light theme for Terminal.app HOT 1
- Support transparent HOT 3
- Error `W18: Invalid character in group name` happens HOT 1
- STATUS LINE HOT 1
- How could we create a dircolor theme? HOT 2
- Support to Intellij IDEA HOT 1
- :dig has unreadable digraphs HOT 1
- Colors Changed After Updating Neovim to Version 10 HOT 3
- When trying to install, the plugin asks to remove itself and then crashes HOT 4
- Other plugin's highlights are broken by using hi clear HOT 3
- Even with Termux! HOT 3
- iceberg.vim isn't adapting well on some terminals HOT 4
- Zathura Support For Iceberg. HOT 1
- Changing Rust docs colors HOT 2
- Tree-Sitter function color HOT 4
- Confusing coloring: Add support for diffSubname HOT 1
- No JSX support HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iceberg.vim.