Skip to content

nilclass/slint-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MELPA

slint-mode

This package contains a very simple major-mode for the Slint UI language, to enable editing Slint files with emacs.

To learn more about slint, visit https://slint.dev/.

Features

This mode is very limited at this point. Supported so far is:

  • Syntax highlighting (aka font-lock)
  • Indentation (configurable via slint-indent-level custom variable)
  • Comment / uncomment region
  • LSP integration using lsp-mode together with slint-lsp.

Screenshot

This is how the "Hello World" example from Slint looks like:

Prerequisites

  • Emacs: I've tested this with GNU Emacs 28.2. ymmv. Please file an issue if you run into any problems.
  • slint-lsp: The slint language server. Follow the link for installation instructions.
  • (Optional) lsp-mode: LSP support for Emacs (alternative to built-in eglot). Can be installed via melpa.

slint-mode should work with both lsp-mode and eglot.

About

Emacs major-mode for the Slint UI language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published