From 436c3d4b1f9d8c8b6a9710f915520dd9ef4b2e23 Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.uk>
Date: Tue, 16 Aug 2022 16:00:30 +0100
Subject: [PATCH] chore(nvim): specify TreeSitter languages

---
 .../neovim/files/after/plugin/treesitter.lua  | 23 +++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/roles/neovim/files/after/plugin/treesitter.lua b/roles/neovim/files/after/plugin/treesitter.lua
index 52a1dd52..0a62e33b 100644
--- a/roles/neovim/files/after/plugin/treesitter.lua
+++ b/roles/neovim/files/after/plugin/treesitter.lua
@@ -7,8 +7,27 @@ configs.setup {
   context_commenting = {
     enable = true,
   },
-  -- TODO: specify which languages to install.
-  ensure_installed = "all",
+  ensure_installed = {
+    "bash",
+    "comment",
+    "css",
+    "dockerfile",
+    "go",
+    "html",
+    "javascript",
+    "json",
+    "lua",
+    "make",
+    "markdown",
+    "php",
+    "regex",
+    "rst",
+    "scss",
+    "typescript",
+    "vim",
+    "vue",
+    "yaml",
+  },
   highlight = {
     enable = true,
   },