Comments (4)
I've tried that plugin and it works perfectly as the following screenshot.
from landscape.vim.
OK, I finally found the reason. I have some configurations in my vimrc like:
set background=dark
color landscape
autocmd! BufLeave * color landscape
autocmd! BufEnter,BufRead *.hbs,*.handlebars color grb256
...
I did this, because I want specific files use different colorscheme when I active their buffer, and as soon as I switch to another buffer, change the colorscheme back to the default one(which is currently landscape).
If I use other colorscheme as the default one, these settings will work perfect, but since I choose landscape as the default one, handlebars miss their filetype detection, but other files remain the same as usual.
Now the solution is, use landscape for handlebars file or change another default colorscheme. There must be some reason cause this weird issue, I just can figure out it.
from landscape.vim.
Firstly, that seems to be a problem of your configuration, not of landscape. This colorscheme does nothing with hbs extension and there cannot be a conflict.
Secondly, changing the colorscheme dynamically is not a good idea. It will not work well with splits.
Thirdly, I copied your config but I open a *.hbs file and see grb256's colors as you expect. Here's a screenshot.
from landscape.vim.
This is what I got:
If I delete the line about handlebars, or change default theme to others, all is well.
But nevermind, maybe something wrong in my vimrc, for now I am happy with landscape for handlebars, you did an excellent theme btw.
And dynamically change colorscheme is actually a cool idea, even work with multiple split windows or tabs, I use this more than two years, I love this feeling. Thanks for your advice anyway.
from landscape.vim.
Related Issues (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 landscape.vim.