Vim syntax for Grafana Alloy files
  • Vim Script 100%
Find a file
2025-08-26 19:11:43 +02:00
autoload/alloy add support for formatting on save (#4) 2024-05-11 13:10:47 -04:00
doc add support for formatting on save (#4) 2024-05-11 13:10:47 -04:00
ftdetect initial commit 2024-03-20 11:58:10 -04:00
ftplugin add support for formatting on save (#4) 2024-05-11 13:10:47 -04:00
syntax remove alloy quotes 2025-08-19 21:52:33 +02:00
LICENSE initial commit 2024-03-20 11:58:10 -04:00
README.md Update README.md - link back to exact lines where the spacechalk theme supports vim-alloy 2025-08-26 19:11:43 +02:00

vim-alloy

This plugin adds support for syntax higlighting Grafana Alloy configuration syntax files.

This is a fork of grafana/vim-alloy to add some more syntax matches (alloyBlockBrace, alloyParentheses, alloyBrackets, alloyOperator, alloyPeriod, alloyAttribute) to use for highlighting. It also avoids doing any actual linking of highlights in the syntax file. The whole thing is just syntax.

Example screenshot of the syntax highlighting

I use spacechalk.nvim, but here's the highlights I used there for the above screenshot:

hi def link alloyString     String
hi def link alloyEscape     Special
hi def link alloyInt        Number
hi def link alloyFloat      Number
hi def link alloyConstant   Constant
hi def link alloyComment    Comment
hi def link alloyTodo       Todo

highlight alloyBlockName    guifg=#6DF2E5 guibg=#323232
highlight alloyBlockLabel   guifg=#C1FF87 cterm=italic gui=italic
highlight alloyBlockBrace   guifg=#f289f9
highlight alloyParentheses  guifg=#7aa2f7
highlight alloyBrackets     guifg=#ff8d87
highlight alloyOperator     guifg=#f7fb53
highlight alloyPeriod       guifg=#d092fc
highlight alloyAttribute    guifg=#5cc9fd