languages/docker: use command instead of callback in autocmd

This commit is contained in:
Snoweuph 2026-05-14 20:41:09 +02:00
commit 244ab53987
No known key found for this signature in database
GPG key ID: BEFC41DA223CEC55

View file

@ -12,7 +12,6 @@
inherit (lib.types) enum listOf;
inherit (lib.nvim.types) mkGrammarOption diagnostics;
inherit (lib.nvim.attrsets) mapListToAttrs;
inherit (lib.generators) mkLuaInline;
cfg = config.vim.languages.docker;
@ -109,9 +108,7 @@ in {
"docker-compose.yml"
"docker-compose.yaml"
];
callback = mkLuaInline ''
vim.bo.filetype = "dockercompose"
'';
command = "set filetype=dockercompose";
}
];
}