From 38671092f3590b12f368e25b84baa61638b0e2aa Mon Sep 17 00:00:00 2001 From: s-prechtl Date: Wed, 10 Apr 2024 18:54:28 +0200 Subject: [PATCH] feat: fixed harpoon not loaded, added treesitter context --- init.lua | 4 ++-- lua/custom/plugins/harpoon.lua | 1 + lua/custom/plugins/init.lua | 10 +++++----- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/init.lua b/init.lua index e4649a1..f8eb950 100644 --- a/init.lua +++ b/init.lua @@ -140,7 +140,7 @@ require('lazy').setup { -- require('Comment').setup({}) -- "gc" to comment visual regions/lines - { 'numToStr/Comment.nvim', opts = {} }, + { 'numToStr/Comment.nvim', opts = {} }, -- Here is a more advanced example where we pass configuration -- options to `gitsigns.nvim`. This is equivalent to the following lua: @@ -570,7 +570,7 @@ require('lazy').setup { -- -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme` 'ellisonleao/gruvbox.nvim', - lazy = false, -- make sure we load this during startup if it is your main colorscheme + lazy = false, -- make sure we load this during startup if it is your main colorscheme priority = 1000, -- make sure to load this before all the other start plugins config = function() -- Load the colorscheme here diff --git a/lua/custom/plugins/harpoon.lua b/lua/custom/plugins/harpoon.lua index 7bdd072..9f61bc5 100644 --- a/lua/custom/plugins/harpoon.lua +++ b/lua/custom/plugins/harpoon.lua @@ -2,6 +2,7 @@ return { 'ThePrimeagen/harpoon', branch = 'harpoon2', dependencies = { 'nvim-lua/plenary.nvim' }, + opts = {}, config = function() local harpoon = require('harpoon') diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index be0eb9d..10575c0 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -1,5 +1,5 @@ --- You can add your own plugins here or in other files in this directory! --- I promise not to create any merge conflicts in this directory :) --- --- See the kickstart.nvim README for more information -return {} +return { + 'nvim-treesitter/nvim-treesitter-context', + opts = {}, +} +