I study guitar as a hobby, beginner-intermediate level. I have weekly jam sessions with a friend who is much more advanced.
I usually play notes from minor pentatonic in the key of what he plays. I sometimes use notes from other scales, although this is much more difficult.
I mostly pluck the notes with the pick, occasionally using bends, slides, hammers,etc., but not so much yet, as I am still learning those.
Occasionally I sound good but a lot of what I do is based on luck, trying to stay in rhythm and when I stumble upon a pattern I like, I repeat it a few times.
Over the course of an hour I become repetitive, and after a few weeks, I feel I am running in circles.
Where could I go from there? Any recommendations on learning material that would help me develop that aspect of guitar playing (which is the reason I got into guitar in the first place).
We usually play blues style, but if there is material from other genres that can help me learn, I am curious to hear it.
EDIT: THANK YOU EVERYONE, I WILL TRY YOUR SUGGESTIONS OVER THE NEXT FEW MONTHS.
To add to this, look at how the scales/modes/pentatonics fit around the chord shapes. If you play an A bar chord at the 5th fret for example and start picking the notes out of the chord you’re actually picking notes from the major and pentatonic scales in A. Map out how those scales fit with the chord shapes and you’ll pick up a few other moves that you can easily translate around the neck as the chords change. This video gave me a lot of new ideas in that regard https://youtu.be/w6TV-nF-_hk?si=BvRuCen2dkY-i1y6