There might be something among translated works with a gun using MC and you might find it when googling but well written cultivation novels are rare in general and gun using MCs in settings where the MC and others have supernatural powers are not that common either so good luck. If you find anything good I am curious too.
The closest I can think of has a team mate of MC with a gun but that isn't proper xianxia just litrpg where cultivation is one of the powers you can acquire.