aboutsummaryrefslogtreecommitdiff
path: root/lua/pml68/plugins/treesitter.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/pml68/plugins/treesitter.lua')
-rw-r--r--lua/pml68/plugins/treesitter.lua68
1 files changed, 0 insertions, 68 deletions
diff --git a/lua/pml68/plugins/treesitter.lua b/lua/pml68/plugins/treesitter.lua
deleted file mode 100644
index 6416f1f..0000000
--- a/lua/pml68/plugins/treesitter.lua
+++ /dev/null
@@ -1,68 +0,0 @@
-return {
- "nvim-treesitter/nvim-treesitter",
- lazy = false,
- build = ":TSUpdate",
- config = function()
- local ts = require("nvim-treesitter")
-
- local ensure_installed = {
- "asm",
- "bash",
- "c",
- "c_sharp",
- "cpp",
- "css",
- "git_config",
- "gitattributes",
- "gitcommit",
- "gitignore",
- "glsl",
- "go",
- "gomod",
- "gosum",
- "gotmpl",
- "gowork",
- "hare",
- "html",
- "java",
- "javascript",
- "json",
- "kotlin",
- "lua",
- "make",
- "markdown",
- "markdown_inline",
- "python",
- "rust",
- "scss",
- "svelte",
- "typescript",
- "vim",
- "vimdoc",
- "yaml",
- }
-
- ts.install(ensure_installed, {
- max_jobs = 12,
- summary = false,
- })
-
- local ignore = {
- "checkhealth",
- "lazy",
- "mason",
- "TelescopePrompt",
- }
-
- vim.api.nvim_create_autocmd("FileType", {
- group = vim.api.nvim_create_augroup("EnableTreesitterHighlighting", { clear = true }),
- callback = function(event)
- if vim.tbl_contains(ignore, event.match) then
- return
- end
-
- pcall(function() vim.treesitter.start(event.buf) end)
- end
- })
- end
-}