π§βπ Not sure what Astro is? See their website at astro.build!
Provides syntax highlighting and indentation support for .astro
files.
![](https://github.com/raw/wuelnerdotexe/vim-astro/main/assets/vim-astro.png)
- Syntax highlighting for embedded languages:
- JavaScript and JSX.
- TypeScript and TSX.
- CSS, SCSS, SASS, and LESS.
- Stylus (need external support).
- Indentation (experimental).
- Code folding.
- No dependencies from external syntax plugins.
- Full integration with Vim functions. Read more.
Install via your preferred package manager. Example using vim-plug:
Plug 'wuelnerdotexe/vim-astro'
alternatively, install manually.
The following variables control certain syntax highlighting features. You can add them to your .vimrc
or init.vim
.
let g:astro_typescript = 'enable'
Enables TypeScript and TSX for .astro
files.
Default Value: 'disable'
let g:astro_stylus = 'enable'
Enables Stylus for .astro
files.
Default Value: 'disable'
NOTE: Vim does not provide Stylus support by default, but you can install vim-stylus to support it.
Hi π, I'm Wuelner, a software developer from Guatemala, passionate about creating minimalist solutions using solid fundamentals focused on "how things should be".
- Based on: Plugin vim-svelte by. Evan Lecklider's.
With π from LATAM to the world!