mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 02:11:33 +00:00
languages/elixir: add HEEx and EEx treesitter grammars
This commit is contained in:
parent
d61de135ce
commit
53327a7b97
2 changed files with 12 additions and 1 deletions
|
@ -492,3 +492,8 @@
|
|||
- Fix default [blink.cmp] sources "path" and "buffer" not working when
|
||||
`autocomplete.nvim-cmp.enable` was disabled and
|
||||
`autocomplete.nvim-cmp.sources` had not been modified.
|
||||
|
||||
[Morsicus](https://github.com/Morsicus):
|
||||
|
||||
- add [EEx Treesitter Grammar](https://github.com/connorlay/tree-sitter-eex) for Elixir
|
||||
- add [HEEx Treesitter Grammar](https://github.com/phoenixframework/tree-sitter-heex) for Elixir
|
||||
|
|
|
@ -50,6 +50,8 @@ in {
|
|||
treesitter = {
|
||||
enable = mkEnableOption "Elixir treesitter" // {default = config.vim.languages.enableTreesitter;};
|
||||
package = mkGrammarOption pkgs "elixir";
|
||||
heexPackage = mkGrammarOption pkgs "heex";
|
||||
eexPackage = mkGrammarOption pkgs "eex";
|
||||
};
|
||||
|
||||
lsp = {
|
||||
|
@ -93,7 +95,11 @@ in {
|
|||
config = mkIf cfg.enable (mkMerge [
|
||||
(mkIf cfg.treesitter.enable {
|
||||
vim.treesitter.enable = true;
|
||||
vim.treesitter.grammars = [cfg.treesitter.package];
|
||||
vim.treesitter.grammars = [
|
||||
cfg.treesitter.package
|
||||
cfg.treesitter.heexPackage
|
||||
cfg.treesitter.eexPackage
|
||||
];
|
||||
})
|
||||
|
||||
(mkIf cfg.lsp.enable {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue