From a772469c11c00b681bbbd85fd8dc275664794e4a Mon Sep 17 00:00:00 2001
From: Asep Komarudin <68836805+pojokcodeid@users.noreply.github.com>
Date: Fri, 3 Mar 2023 22:56:06 +0700
Subject: [PATCH] Updated 7. Contoh Custom Plugins (markdown)
---
7.-Contoh-Custom-Plugins.md | 33 ++++++++++++++++++++++++++++++++-
1 file changed, 32 insertions(+), 1 deletion(-)
diff --git a/7.-Contoh-Custom-Plugins.md b/7.-Contoh-Custom-Plugins.md
index 684bd02..6c6e35c 100644
--- a/7.-Contoh-Custom-Plugins.md
+++ b/7.-Contoh-Custom-Plugins.md
@@ -1452,4 +1452,35 @@ return {
```
Sumber :
https://github.com/folke/noice.nvim
-https://github.com/hrsh7th/cmp-cmdline
\ No newline at end of file
+https://github.com/hrsh7th/cmp-cmdline
+
+# nvim-treesitter-context
+- but file lua/plugin/context.lua
+```lua
+return {
+ {
+ "romgrk/nvim-treesitter-context",
+ event = "BufRead",
+ config = function()
+ require("treesitter-context").setup({
+ enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)
+ throttle = true, -- Throttles plugin updates (may improve performance)
+ max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit.
+ patterns = { -- Match patterns for TS nodes. These get wrapped to match at word boundaries.
+ -- For all filetypes
+ -- Note that setting an entry here replaces all other patterns for this entry.
+ -- By setting the 'default' entry below, you can control which nodes you want to
+ -- appear in the context window.
+ default = {
+ "class",
+ "function",
+ "method",
+ },
+ },
+ })
+ end,
+ },
+}
+```
+Sumber :
+https://github.com/nvim-treesitter/nvim-treesitter-context
\ No newline at end of file