aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/treesitter.lua
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/lua/plugins/treesitter.lua')
-rw-r--r--nvim/lua/plugins/treesitter.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/nvim/lua/plugins/treesitter.lua b/nvim/lua/plugins/treesitter.lua
new file mode 100644
index 0000000..edcaff2
--- /dev/null
+++ b/nvim/lua/plugins/treesitter.lua
@@ -0,0 +1,29 @@
1-- https://github.com/nvim-treesitter/nvim-treesitter/blob/main/README.md
2
3return {
4 {
5 "nvim-treesitter/nvim-treesitter",
6 branch = "main",
7 build = ":TSUpdate",
8 lazy = false,
9 config = function()
10 local treesitter = require("nvim-treesitter")
11
12 treesitter.setup({})
13
14 -- https://github.com/nvim-treesitter/nvim-treesitter/blob/main/SUPPORTED_LANGUAGES.md
15 treesitter.install({
16 "c",
17 "cpp",
18 "html",
19 "python",
20 "vim",
21 "vimdoc",
22 "javascript",
23 "lua",
24 "typescript",
25 "vim",
26 })
27 end,
28 },
29}