Comments (9)
Hey, thanks for the issue. You're correct - there aren't any specific colors set for any Python syntax plugins. I'm mostly a JS dev, which is why there's a lot of customization there.
PRs are welcome! I would just want to make sure we're adding colors for a popular syntax plugin. You can see an example of the JS colors here.
from material.vim.
I see, Vim-polyglot has ~2500 stars on their github repo. Do I start adding highlighting for python uses that syntax plugin?
from material.vim.
It looks like vim-polyglot uses this syntax plugin.
from material.vim.
I have started writing the colors for python now.
from material.vim.
I am quite happy with the syntax highlighting for Python now. @mariush2, you had used a very bare script for comparison. See instead:
import unittest
import os
class TestFile(unittest.TestCase):
def setUp(self):
self.file = open("test_file.txt", "w")
def tearDown(self):
os.remove("test_file.txt")
def test_meh(self):
self.file.write("manga")
if __name__ == "__main__":
unittest.main()
from material.vim.
To clarify what I want to achieve with the new highlighting for python.
Here is a screenshot of some code in vim:
Here is the same piece of code in Atom using the material theme:
I want to get closer to the Atom look in vim here. Specifically on lines like request.session['login'] = True
and user = authenticate(username=form.username, password=form.password)
from material.vim.
Just my opinion, take it as constructive feedback:
- Overall I feel the vim version is easier to read
- 👍 for colouring methods (
is_valid
) and classes / functions (LoginForm
,redirect
) in blue and keyword args (commit=
,username=
) in cyan - it might be possible to do that in vim, and maybe it helps - 👎 However, I don't like how the color of the variable
request
,form
,user
etc change between based on context. It is distracting.
from material.vim.
I'm definitely open to adding some Python-specific syntax highlighting. I'd love to try to keep colors consistent between languages where we can, but that's obviously not possible 100% of the time. If someone does decide to take this on, if we could use the JS example provided by the issue author as a guide, I think we'll be on the right track.
from material.vim.
Closing this due to lack of movement. Comment above still stands and would definitely be open to updating styles. :)
from material.vim.
Related Issues (20)
- Original color scheme HOT 3
- Add support for vim-airline again
- Control sequence spitout with Kitty terminal HOT 2
- iterm colors not showing HOT 8
- Increase the contrast of line numbers in palenight? HOT 4
- Update vim-javascript styles
- NerdTree weird highlight HOT 1
- iTerm themes failing import. HOT 4
- iterm2 vim 8.1 color weird HOT 14
- Matching parenthesis highlighting confusing (MatchParen) HOT 3
- Poor HTML highlighting HOT 5
- Airline theme is not loaded HOT 7
- Keywords and comments with background highlighted HOT 7
- Mention vim-javascript in README HOT 3
- treesitter support HOT 4
- Add Lualine theme HOT 2
- copy material.vim to colorschemes folder? HOT 3
- W18: Invalid character in group name HOT 1
- Link in README.md points to a non-existing site HOT 1
- All identifiers are red in ts files HOT 6
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 material.vim.