Skip to content

tdillenburg/vim-astro

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-astro

Vim syntax highlighting and indentation for Astro

This is mostly just HTML syntax highlighting with some keywords added

Dependencies

The JavaScript highlighting depends on pangloss/vim-javascript. That ships with sheerun/vim-polyglot so if you're already using that then you should be set.

Installation

The simplest way to install vim-astro is via a package manager like Pathogen, Vundle, NeoBundle, Plug, or minpac.

For example, using minpac:

call minpac#add('rajasegar/vim-astro')

Or using Plug:

Plug 'rajasegar/vim-astro', {'branch': 'main'}

Options

To disable indentation within --- and <style> tags, set one of these variables in your vimrc:

let g:astro_indent_script = 0
let g:astro_indent_style = 0

Integrations

  • ALE: vim-astro should work out of the box with eslint and a few other linters/fixers. PRs welcome if the one you want is missing.
  • matchit.vim: vim-astro should work out of the box and allow moving between HTML tags as well as flow control like #if/:else//if.

Tests

Indentation tests are provided and any contributions would be much appreciated. They can be run with make test which will clone vader.vim into the current working directory and run the test suite.

About

Vim plugin for Astro

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 97.1%
  • Makefile 2.9%