Vim syntax highlighting and indentation plugin for Svelte component files (.svelte).
vim-svelte-plugin is a Vim plugin that adds syntax highlighting and indentation support for Svelte component files (.svelte). It parses the HTML, CSS, and JavaScript sections within Svelte files to provide proper coloring and indentation, making it easier to develop Svelte applications directly in Vim or Neovim.
Vim and Neovim users who develop with Svelte and need editor support for .svelte files, particularly those who prefer lightweight, terminal-based editing environments.
It offers a specialized, performant solution for editing Svelte files in Vim, with support for Svelte directives, preprocessors, and context-aware behavior, without requiring a full IDE.
Vim syntax and indent plugin for .svelte files
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Accurately colors Svelte-specific directives within templates, enhancing readability for Svelte's unique syntax as shown in the configuration for template sections.
Seamlessly combines HTML, CSS, and JavaScript syntax and indentation in a single .svelte file, with support for preprocessors like Pug and Sass via additional plugins.
Provides functions like GetSvelteTag() to enable mappings based on cursor position, allowing for tailored editing experiences and local settings changes.
Offers variables like g:vim_svelte_plugin_load_full_syntax to control syntax loading, helping users balance feature richness with editor speed as warned in the README.
Enabling options such as g:vim_svelte_plugin_load_full_syntax can slow down Vim, requiring manual tuning to maintain responsiveness, as explicitly noted in the configuration warnings.
Full preprocessor support relies on installing separate Vim plugins (e.g., for Pug or TypeScript), increasing setup complexity and potential compatibility issues.
Focuses solely on syntax and indentation, missing advanced capabilities like auto-completion, refactoring, or integrated debugging available in dedicated Svelte IDEs.