From c80b577a5a044a97e7832857ee609f36fa59b0fa Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Thu, 27 Jul 2023 14:20:12 +0300 Subject: [PATCH] feat(nvim): plugin: nvim-treesitter-context --- config/astronvim/lua/user/plugins/user.lua | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/config/astronvim/lua/user/plugins/user.lua b/config/astronvim/lua/user/plugins/user.lua index d191f70..da5408a 100644 --- a/config/astronvim/lua/user/plugins/user.lua +++ b/config/astronvim/lua/user/plugins/user.lua @@ -12,6 +12,15 @@ return { lazy = false, enabled = true, }, + { + "nvim-treesitter/nvim-treesitter-context", + lazy = false, + enabled = true, + opts = { + enable = true, + mode = "cursor", -- cursor, or topline + }, + }, { "folke/edgy.nvim", event = "VeryLazy", @@ -78,11 +87,11 @@ return { pinned = true, open = "Neotree position=top buffers", }, - { - ft = "Outline", - pinned = true, - open = "SymbolsOutlineOpen", - }, + -- { + -- ft = "Outline", + -- pinned = true, + -- open = "SymbolsOutlineOpen", + -- }, -- any other neo-tree windows "neo-tree", },