Merge pull request #923 from NotAShelf/cc-yaml-grammar
Some checks failed
Set up binary cache / cachix (default) (push) Has been cancelled
Set up binary cache / cachix (maximal) (push) Has been cancelled
Set up binary cache / cachix (nix) (push) Has been cancelled
Treewide Checks / Validate flake (push) Has been cancelled
Treewide Checks / Check formatting (push) Has been cancelled
Treewide Checks / Check source tree for typos (push) Has been cancelled
Treewide Checks / Validate documentation builds (push) Has been cancelled
Treewide Checks / Validate hyperlinks in documentation sources (push) Has been cancelled
Treewide Checks / Validate Editorconfig conformance (push) Has been cancelled
Build and deploy documentation / Check latest commit (push) Has been cancelled
Build and deploy documentation / publish (push) Has been cancelled

assistant/codecompanion: also add YAML tree-sitter grammar when enabled
This commit is contained in:
raf 2025-05-31 03:25:04 +03:00 committed by GitHub
commit c4cf91d4b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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]";};