This is a Vim syntax file for sway config files.
Install this with your favorite plugin manager, or simply put sway.vim in your
~/.vim/syntax
directory (or ~/.config/nvim/syntax
for NeoVim)
Add modelines to your config files to define the filetype.
vim: filetype=sway
This syntax file is based off of the one for i3wm.