summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/treesitter.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/plugins/treesitter.lua')
-rw-r--r--.config/nvim/lua/plugins/treesitter.lua35
1 files changed, 35 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/treesitter.lua b/.config/nvim/lua/plugins/treesitter.lua
new file mode 100644
index 0000000..fe48d9f
--- /dev/null
+++ b/.config/nvim/lua/plugins/treesitter.lua
@@ -0,0 +1,35 @@
+return {
+ {
+ "nvim-treesitter/nvim-treesitter",
+ event = { "BufReadPre", "BufNewFile" },
+ config = function()
+ require("nvim-treesitter.configs").setup({
+ auto_install = true,
+ ensure_installed = {
+ "bash",
+ "clojure",
+ "css",
+ "html",
+ "ini",
+ "javascript",
+ "json",
+ "kotlin",
+ "lua",
+ "markdown",
+ "perl",
+ "python",
+ "regex",
+ "rust",
+ "scss",
+ "sql",
+ "svelte",
+ "toml",
+ "tsx",
+ "typescript",
+ "yaml",
+ },
+ highlight = { enable = true },
+ })
+ end,
+ },
+}