Change filetype detection for .sc

The code used deprecated functions and I don't use Supercollider anyway,
so make .sc always be a scala file
This commit is contained in:
Alexander Gehrke 2024-05-29 15:24:43 +02:00
parent 0223565b9a
commit c6010628ca
2 changed files with 10 additions and 33 deletions

View file

@ -1,18 +1,19 @@
vim.filetype.add({
extension = {
['vtt'] = 'vtt',
['typ'] = 'typst',
["vtt"] = "vtt",
["typ"] = "typst",
["sc"] = "scala",
},
filename = {
['.scalafmt.conf'] = 'hocon',
['kitty.conf'] = 'kitty',
['neomuttrc'] = 'neomutt',
['template'] = 'sh',
['mbsyncrc'] = 'mbsyncrc',
[".scalafmt.conf"] = "hocon",
["kitty.conf"] = "kitty",
["neomuttrc"] = "neomutt",
["template"] = "sh",
["mbsyncrc"] = "mbsyncrc",
},
pattern = {
['${XDG_CONFIG_HOME}/kitty/*.conf'] = 'kitty',
['${XDG_CONFIG_HOME}/kitty/*.session'] = 'kitty-session',
["${XDG_CONFIG_HOME}/kitty/*.conf"] = "kitty",
["${XDG_CONFIG_HOME}/kitty/*.session"] = "kitty-session",
},
})