trevorhauter / gitportal.nvim

Easily generate or ingest shareable permalinks to get to the files you want. Fast.
MIT License
5 stars 0 forks source link

Fix bug where link isn't generated properly if head is detached #12

Closed trevorhauter closed 2 months ago

trevorhauter commented 2 months ago

Right now, if you checkout a specific commit, the plugin generates a very strange link! Something like https://github.com/trevorhauter/gitportal.nvim/blob/HEAD/lua/gitportal/init.lua

This does open the file, but, it's not what we want.