From 1f1015fb62a29782bbe3fd8649200e6b8822aa0c Mon Sep 17 00:00:00 2001 From: Hau Nguyen Date: Thu, 29 Feb 2024 02:31:03 +0700 Subject: [PATCH] chore(nvim): disable treesitter because performance --- data/nvim/init.lua | 44 -------------------------------------------- 1 file changed, 44 deletions(-) diff --git a/data/nvim/init.lua b/data/nvim/init.lua index f8ee553..8c59344 100644 --- a/data/nvim/init.lua +++ b/data/nvim/init.lua @@ -394,50 +394,6 @@ require("lazy").setup({ end, }, - -- https://github.com/nvim-treesitter/nvim-treesitter - { - "nvim-treesitter/nvim-treesitter", - build = { - ":TSUpdate", - }, - config = function() - require("nvim-treesitter.configs").setup({ - ensure_installed = { - "go", - "lua", - "proto", - "python", - }, - highlight = { - enabled = true, - disable = function(lang, bufnr) - -- Skip if not go, proto - if lang ~= "go" and lang ~= "proto" and lang ~= "lua" then - return true - end - - -- Skip big files with many lines - return vim.api.nvim_buf_line_count(bufnr) > 2000 - end, - }, - }) - end, - }, - - -- https://github.com/nvim-treesitter/nvim-treesitter-context - { - "nvim-treesitter/nvim-treesitter-context", - dependencies = { - "nvim-treesitter/nvim-treesitter", - }, - config = function() - require("treesitter-context").setup({ - enable = true, - max_lines = 2, - }) - end, - }, - -- https://github.com/neovim/nvim-lspconfig { "neovim/nvim-lspconfig",