Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: symlinked files cannot be highlighted when hovered #212

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

mikavilpas
Copy link
Owner

I experienced this issue when hovering over my yazi.nvim lazy.nvim spec. It's symlinked to the actual file in the lazy.nvim repository.

These are the same file:

/Users/mikavilpas/dotfiles/.config/nvim/lua/plugins/my-file-manager.lua
/Users/mikavilpas/.config/nvim/lua/plugins/my-file-manager.lua

This commit fixes the issue by resolving the real path of the file before
comparing it to the path of the buffer.

Closes #195

I experienced this issue when hovering over my yazi.nvim lazy.nvim spec.
It's symlinked to the actual file in the lazy.nvim repository.

These are the same file:

```sh
/Users/mikavilpas/dotfiles/.config/nvim/lua/plugins/my-file-manager.lua
/Users/mikavilpas/.config/nvim/lua/plugins/my-file-manager.lua
```

This commit fixes the issue by resolving the real path of the file
before
comparing it to the path of the buffer.

Closes #195
@mikavilpas mikavilpas enabled auto-merge (squash) July 16, 2024 14:43
@mikavilpas mikavilpas merged commit 85e8d1d into main Jul 16, 2024
14 checks passed
@mikavilpas mikavilpas deleted the fix-symlink-recognition branch July 16, 2024 14:45
This was referenced Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Symlinked files cannot be highlighted when hovered
1 participant