Skip to content

Commit c64c199

Browse files
committed
chore(treesitter): Manually add angular and typescript
1 parent c6dac28 commit c64c199

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

config/editor/misc.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ in {
1818
vim = {
1919
treesitter.grammars = [
2020
treesitter-patterns
21+
pkgs.vimPlugins.nvim-treesitter.builtGrammars.angular
22+
pkgs.vimPlugins.nvim-treesitter.builtGrammars.typescript
23+
pkgs.vimPlugins.nvim-treesitter.builtGrammars.javascript
24+
pkgs.vimPlugins.nvim-treesitter.builtGrammars.html
2125
];
2226
lazy.plugins = with pkgs.vimPlugins; {
2327
"instant.nvim" = mkDashDefault {

config/languages/treesitter.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{mkDashDefault, ...}: {
2-
vim.treesitter = mkDashDefault {
3-
enable = true;
4-
autotagHtml = true;
5-
context.enable = true;
2+
vim.treesitter = {
3+
enable = mkDashDefault true;
4+
autotagHtml = mkDashDefault true;
5+
context.enable = mkDashDefault true;
66
};
77
}

0 commit comments

Comments
 (0)