assistant/codecompanion: also add YAML tree-sitter grammar when enabled

This commit is contained in:
raf 2025-05-27 07:44:18 +03:00
commit e78ebe0680
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -21,7 +21,17 @@ in {
}; };
}; };
treesitter.enable = true; treesitter = {
enable = true;
# Codecompanion depends on the YAML grammar being added. Below is
# an easy way of adding an user-configurable grammar package exposed
# by the YAML language module *without* enabling the whole YAML language
# module. The package is defined even when the module is disabled.
grammars = [
config.vim.languages.yaml.treesitter.package
];
};
autocomplete.nvim-cmp = { autocomplete.nvim-cmp = {
sources = {codecompanion-nvim = "[codecompanion]";}; sources = {codecompanion-nvim = "[codecompanion]";};