{"repo":"evanleck/vim-svelte","free":true,"listed":false,"github":"https://github.com/evanleck/vim-svelte","clone":"git clone https://github.com/evanleck/vim-svelte.git","description":"Vim syntax highlighting and indentation for Svelte 3 components.","language":"Vim Script","stars":323,"topics":["vim","neovim","plugin","svelte","sveltejs"],"license":"BSD-3-Clause","category":"ui-components","readme_excerpt":"vim-svelte Vim syntax highlighting and indentation for [Svelte 3][svelte] components. This is mostly just HTML syntax highlighting with some keywords added and all expressions inside of { and } highlighted as JavaScript. Highlighting includes: - HTML attributes with a colon like on:click or transition:fade highlighted as Keyword . - #if , /if , :else , and :else if highlighted as Conditional . - #await , /await , :catch , :then , and @html highlighted as Keyword . - #each and /each highlighted as Repeat . Dependencies 1. [pangloss/vim-javascript][vim-javascript] for JavaScript syntax highlighting. 2. [othree/html5.vim][html5-vim] for HTML indent. Both of those dependencies are included in [sheerun/vim-polyglot][vim-polyglot] so if you're already using that then you should be set. Installation The simplest way to install vim-svelte is via a package manager like [Pathogen][pathogen], [Vundle][vundle], [NeoBundle][neobundle], [Plug][vim-plug], or [minpac][minpac]. For example, using minpac: Or using Plug: vim-svelte works just fine with Vim 8's native package loading as well. Options To disable indentation within and tags, set one of these variables in your vimrc : Preprocessed languages Syntax highlighting for additional languages is supported, assuming you have a corresponding syntax definition installed. For example, newer versions of Vim ship with a TypeScript syntax definition, so you wouldn't need anything additional installed for that to work. Supported languages include:","default_branch":null,"files":null,"tree":[],"storefront":"/r/evanleck","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/evanleck/vim-svelte/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}