dsawardekar / ember.vim Goto Github PK
View Code? Open in Web Editor NEWVim plugin for the Emberjs frontend framework
License: MIT License
Vim plugin for the Emberjs frontend framework
License: MIT License
Is there a video or a cheat sheet which shows the characters to type or select to switch between {model, controller, route, template, component, view}? Also how do you get Ctrl-P show the list of files vertically on a left side-bar? Thanks for the answers.
I currently have both ember.vim
and portkey
installed, and my portkey.json
file contains:
{
"portkeys": ["ember"]
}
I receive the following error each time I enter a file:
Extension not found: ember
Cannot load portkey: ember
Extension not found: ember
Cannot load portkey: ember
Press ENTER or type command to continue
Getting this error when opening a .hbs
file:
Error detected while processing ~/.vim/bundle/ember.vim/syntax/ember.vim:
line 35:
E254: Cannot allocate color 3
Looks like it's caused by this line.
Adding this line to my vimrc fixes the problem temporarily:
let g:ember_handlebars_no_default_styles = 1
I'm unable to get custom syntax highlighting for ember working with my cutsom portkey.json using "portkeys": ["ember:custom"],
. If I change this line to "portkeys": ["ember:classic-coffee"]
, I get the proper syntax highlighting, but it overwrites the templates from my custom config (e.g. Emodel post!
).
Here' my :PortkeyVersion
:
Portkey: version=0.1.7
Current Resource Type: route
Portkeys Loaded:
1. tapas-with-ember/portkey.json
from: https://twitter.com/_dsawardekar/status/395410705945354242
Is this repo still maintained and is this the right place to add an issue like this?
// gf on this would work
{{shared/radio_group }}
// gf on this does not work
<Shared::RadioGroup />
Polyglot is my plugin of choice for syntax highlighting. However, ember.vim overwrites its rules for Handlebars files:
:autocmd BufRead *.hbs
--- Auto-Commands ---
BufRead
*.hbs set filetype=html.handlebars syntax=mustache | runtime! ftplugin/mustache.vim ftplugin/mustache*.vim ftplugin/mustache/*.vim
*.hbs set filetype=handlebars.ember
which lands me with no html highlighting.
Since vim doesn't provide a way to unregister a single autocmd, I have to overwrite this with yet another autocmd in my vimrc, but losing the convenience polyglot provided.
Culprit: ftdetect/handlebars.vim.
Possible solution: at least wrap it in its own group (augroup ember.vim ... augroup end
); this will let users disable the entire group. Or maybe just append an ember filetype at the end in the autocmd (set ft+=.ember
).
I prefer the first solution.
With a standard ctrl-p window, the matching portion of each line is highlighted. This does not happen for the ember ctrl-p extensions (eg finding by model).
It occurs to me the root problem is likely in portkey, and not ember.vim.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.