aboutsummaryrefslogtreecommitdiff
path: root/lua/pml68/plugins/treesitter.lua
diff options
context:
space:
mode:
authorpml68 <contact@pml68.me>2024-11-29 23:28:27 +0100
committerpml68 <contact@pml68.me>2024-11-29 23:28:27 +0100
commit82a1c1e251210f4805dec8f6d59a6ab2c6791334 (patch)
treec2db695fe2767ff314319a490c833bebd30f99a8 /lua/pml68/plugins/treesitter.lua
parentfeat: remove deprecated API call (diff)
downloadnvim-82a1c1e251210f4805dec8f6d59a6ab2c6791334.tar.gz
feat: split plugins.lua into manageable "chunks"
Diffstat (limited to '')
-rw-r--r--lua/pml68/plugins/treesitter.lua39
1 files changed, 39 insertions, 0 deletions
diff --git a/lua/pml68/plugins/treesitter.lua b/lua/pml68/plugins/treesitter.lua
new file mode 100644
index 0000000..3d395ea
--- /dev/null
+++ b/lua/pml68/plugins/treesitter.lua
@@ -0,0 +1,39 @@
+return {
+ "nvim-treesitter/nvim-treesitter",
+ event = { "BufReadPost", "BufNewFile" },
+ build = ":TSUpdate",
+ config = function()
+ require("nvim-treesitter.configs").setup({
+ ensure_installed = {
+ "asm",
+ "c",
+ "cpp",
+ "c_sharp",
+ "lua",
+ "kotlin",
+ "java",
+ "bash",
+ "html",
+ "scss",
+ "css",
+ "typescript",
+ "javascript",
+ "svelte",
+ "python",
+ "rust",
+ "markdown",
+ "markdown_inline",
+ "yaml",
+ "json",
+ "glsl",
+ "make",
+ "gitignore",
+ "gitattributes",
+ "gitcommit",
+ },
+ highlight = {
+ enable = true
+ }
+ })
+ end
+}