From c489d393695e90d424f9ae51e35c4d42358e6a71 Mon Sep 17 00:00:00 2001 From: Squibid Date: Fri, 9 Aug 2024 02:45:31 -0400 Subject: yes there's a bit of java in my nvim config why do you ask? --- after/plugin/ts.lua | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 after/plugin/ts.lua (limited to 'after/plugin/ts.lua') diff --git a/after/plugin/ts.lua b/after/plugin/ts.lua deleted file mode 100644 index 0494b3b..0000000 --- a/after/plugin/ts.lua +++ /dev/null @@ -1,36 +0,0 @@ -local status_ok, treesitter = pcall(require, "nvim-treesitter.configs") -if not status_ok then - return -end - -treesitter.setup { - ensure_installed = { - "c", - "lua", - "bash", - "vim", - "vimdoc", - "query", - "git_rebase", - "gitattributes", - "gitcommit", - "gitignore", - "git_config", - }, - - highlight = { - enable = true, - additional_vim_regex_highlighting = false, - disable = function(lang, buf) - if lang == "diff" then return true end - local max_filesize = 1024 * 100 -- 100 KB - local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf)) - if ok and stats and stats.size > max_filesize then - return true - end - end - }, - indent = { - enable = true - } -} -- cgit v1.2.1