languages/yaml: add treesitter filetype mappings for yml

This commit is contained in:
Snoweuph 2026-04-23 22:55:34 +02:00 committed by Ching Pei Yang
commit e201640fc9
2 changed files with 8 additions and 3 deletions

View file

@ -46,8 +46,11 @@ in {
config = mkIf cfg.enable (mkMerge [
(mkIf cfg.treesitter.enable {
vim.treesitter.enable = true;
vim.treesitter.grammars = [cfg.treesitter.package];
vim.treesitter = {
enable = true;
grammars = [cfg.treesitter.package];
filetypeMappings.yaml = ["yml"];
};
})
(mkIf cfg.lsp.enable {