From 70cc034eea57754b21eb01c17e7002c27a2b56b1 Mon Sep 17 00:00:00 2001 From: "asep.komarudin" Date: Wed, 26 Jun 2024 18:36:33 +0700 Subject: [PATCH] add: config treesitter context --- lua/custom/default.lua | 2 +- lua/plugins/treesitter.lua | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lua/custom/default.lua b/lua/custom/default.lua index 5d681d5..b0cc070 100644 --- a/lua/custom/default.lua +++ b/lua/custom/default.lua @@ -48,7 +48,7 @@ pcode.format_timeout_ms = 5000 pcode.disable_null_ls = true pcode.treesitter_ensure_installed = {} - +pcode.tscontext = false -- ini hanya untuk lsp yg tidak support masson -- untuk referesi support language kunjungi link dibawah -- https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index e84b2c1..e9148ae 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -2,7 +2,6 @@ return { { "nvim-treesitter/nvim-treesitter", dependencies = { - { "nvim-treesitter/nvim-treesitter-context" }, { "JoosepAlviste/nvim-ts-context-commentstring", lazy = true, @@ -183,4 +182,8 @@ return { require("illuminate").configure(opts) end, }, + { + "nvim-treesitter/nvim-treesitter-context", + enabled = pcode.tscontext or false, + }, }