From c6c64b58512530bb5c1c8ede391974367ae24ebb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Sun, 15 Jun 2025 08:23:49 +0200 Subject: [PATCH] nvim: remove treesitter-context --- .config/nvim/after/plugin/treesitter.lua | 11 ----------- .config/nvim/lua/_lazy.lua | 3 --- 2 files changed, 14 deletions(-) diff --git a/.config/nvim/after/plugin/treesitter.lua b/.config/nvim/after/plugin/treesitter.lua index da14215f..d7fb659d 100644 --- a/.config/nvim/after/plugin/treesitter.lua +++ b/.config/nvim/after/plugin/treesitter.lua @@ -42,14 +42,3 @@ require("nvim-treesitter.configs").setup { }, }, } - -require("treesitter-context").setup { - enable = true, -- Enable this plugin (Can be enabled/disabled later via commands) - max_lines = 2, -- How many lines the window should span. Values <= 0 mean no limit. - min_window_height = 0, -- Minimum editor window height to enable context. Values <= 0 mean no limit. - line_numbers = true, - multiline_threshold = 20, -- Maximum number of lines to collapse for a single context line - trim_scope = "outer", -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer' - mode = "topline", -- Line used to calculate context. Choices: 'cursor', 'topline' - zindex = 20, -- The Z-index of the context window -} diff --git a/.config/nvim/lua/_lazy.lua b/.config/nvim/lua/_lazy.lua index 2d8f14b2..51f93640 100644 --- a/.config/nvim/lua/_lazy.lua +++ b/.config/nvim/lua/_lazy.lua @@ -153,9 +153,6 @@ local plugins = { build = ":TSUpdate", }, - -- Hovering context - "nvim-treesitter/nvim-treesitter-context", - -- -- Completion --