-
Notifications
You must be signed in to change notification settings - Fork 28
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
feat: highlight the currently hovered file in yazi (opt-in) #180
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mikavilpas
added a commit
to mikavilpas/dotfiles
that referenced
this pull request
Jul 11, 2024
mikavilpas
force-pushed
the
highlight-hovered-window
branch
from
July 12, 2024 11:15
44ef09f
to
94fb40e
Compare
For now, this change is opt-in (disabled by default). This change makes it possible to highlight the currently hovered file with a style of the user's own choosing. To enable it, you need to do the following steps in your configuration: - set `use_ya_for_events_reading = true` - set these new settings in your configuration: ```lua ---@type LazySpec { "mikavilpas/yazi.nvim", -- ...other settings you might already have ---@type YaziConfig opts = { -- add these: use_ya_for_events_reading = true, highlight_groups = { hovered_buffer_background = { bg = "#363a4f" }, }, -- ...other settings you might already have } } ``` For now, the color needs to be configured manually. In the future we may have a good default color. If you use catppuccin, you can find all the colors in the palette here: <https://catppuccin.com/palette>. I used the `Surface 0` color from my catppuccin macchiato palette.
mikavilpas
force-pushed
the
highlight-hovered-window
branch
from
July 12, 2024 12:19
e416fc2
to
b249ec4
Compare
This was referenced Jul 12, 2024
mikavilpas
added a commit
to mikavilpas/dotfiles
that referenced
this pull request
Jul 15, 2024
Squashed commit of the following: commit f57e7cb Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Mon Jul 15 09:00:21 2024 +0300 fix(nvim): which-key v3 prevents lazygit from pressing esc commit c9da0ed Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Mon Jul 15 08:59:41 2024 +0300 chore(nvim): update packages commit c8437e8 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Sun Jul 14 12:53:36 2024 +0300 chore(nvim): update packages commit 5350ee6 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Sun Jul 14 09:55:03 2024 +0300 chore(nvim): update packages commit dcd1eef Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Sat Jul 13 19:59:23 2024 +0300 fix(nvim): roll back which-key due to esc not working in terminal commit d35f89b Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Sat Jul 13 19:46:00 2024 +0300 chore(nvim): disable typos lsp log commit 544e901 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Sat Jul 13 19:45:34 2024 +0300 fix(nvim): annoying lazyvim keymap prevents using esc in terminal mode commit 5feca89 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Sat Jul 13 17:58:20 2024 +0300 chore(nvim): update packages commit db79482 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Fri Jul 12 19:59:05 2024 +0300 chore(nvim): update packages commit b0516e8 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Thu Jul 11 21:36:36 2024 +0300 feat(nvim): opt into testing yazi hover highlight feature mikavilpas/yazi.nvim#180 commit 1731512 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Thu Jul 11 08:11:28 2024 +0300 chore(nvim): update packages commit 5c0c252 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Wed Jul 10 18:38:46 2024 +0300 chore(nvim): update packages commit 10f7b04 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Wed Jul 10 17:27:35 2024 +0300 chore(nvim): update packages commit 7ae1666 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Wed Jul 10 17:27:07 2024 +0300 feat(nvim): opt into yazi.nvim event reading with `ya` mikavilpas/yazi.nvim#152 commit 61ed767 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Sun Jul 7 20:04:20 2024 +0300 refactor(yazi): make shell commands --interactive This seems to be a new recommendation in the upcoming version of Yazi. commit a7600f1 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Sun Jul 7 19:59:29 2024 +0300 chore(nvim): update packages commit 5b2a94a Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Sat Jul 6 09:30:17 2024 +0300 chore(nvim): update packages commit e7152b9 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Wed Jul 3 17:36:01 2024 +0300 chore(nvim): update packages commit 9b5477e Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Wed Jul 3 10:03:46 2024 +0300 fix(nvim): allow yazi.nvim to open a nested nvim Having flatten.nvim enabled while using yazi.nvim causes issues with bulk renaming. This is because flatten.nvim "flatten" the nested nvim session, causing the bulk renaming file to be opened behind yazi.nvim's floating terminal. Work around this simply by disabling flatten.nvim when the YAZI_ID environment variable is set. commit 254622a Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Wed Jul 3 10:03:35 2024 +0300 refactor(nvim): remove unused variable commit cb4e90d Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Wed Jul 3 10:03:24 2024 +0300 refactor(nvim): add typing for colors.lua commit 1e69cf1 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Wed Jul 3 10:00:44 2024 +0300 refactor(nvim): yazi.nvim no longer needs plenary dep to be given It's now handled internally in yazi.nvim commit 0393bca Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Wed Jul 3 09:59:50 2024 +0300 chore(nvim): update packages commit c1bc48d Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Sat Jun 29 14:01:41 2024 +0300 chore(nvim): update packages commit 1e3d41f Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Sat Jun 29 14:01:16 2024 +0300 fix(nvim): lazyvim would color directories pink I want them gray! commit ade9046 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Sat Jun 29 13:59:53 2024 +0300 fix(starship): change the clock symbol to a non-removed one The new one is `nf-md-clock_time_four_outline` https://www.nerdfonts.com/cheat-sheet The old one was `nf-mdi-clock`, which seems to have been removed. It did not show up in other terminals, only wezterm. commit 7d761b4 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Thu Jun 27 20:17:45 2024 +0300 chore(nvim): update packages commit 3afca63 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Thu Jun 27 13:30:27 2024 +0300 refactor(zsh): use "docker compose" instead of "docker-compose" commit 63d7304 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Wed Jun 26 21:26:14 2024 +0300 chore(nvim): update packages commit ef55d6c Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Wed Jun 26 20:46:14 2024 +0300 chore(nvim): update packages commit fe49dae Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Wed Jun 26 18:26:35 2024 +0300 chore(nvim): update packages commit b066dfa Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Tue Jun 25 08:05:21 2024 +0300 chore(nvim): update packages commit 1799696 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Mon Jun 24 20:41:07 2024 +0300 chore(nvim): update packages commit 3cc727f Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Mon Jun 24 20:40:58 2024 +0300 feat(zsh): watchexec provides timings for commands commit 6aa86d6 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Mon Jun 24 20:40:46 2024 +0300 feat(nvim): github copilot can suggest commit messages based on diff This way the diff of the commit-to-be is easily visible to copilot, so it has much more context to provide better suggestions with commit 75e070c Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Sun Jun 23 11:21:30 2024 +0300 chore(nvim): update packages commit bf98284 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Sun Jun 23 11:18:06 2024 +0300 refactor(nvim): expose linking to a relative file to plugins commit df54238 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Sat Jun 22 08:29:36 2024 +0300 chore(nvim): update packages commit 11d4ccb Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Thu Jun 20 19:01:08 2024 +0300 chore(nvim): update packages commit 7cb4155 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Wed Jun 19 13:46:57 2024 +0300 fix(nvim): try letting lsps know lazygit might have modified files commit 56650e8 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Wed Jun 19 13:46:38 2024 +0300 chore(nvim): update packages commit ce05f23 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Wed Jun 19 13:46:16 2024 +0300 chore(nvim): update packages commit d961add Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Tue Jun 18 21:54:14 2024 +0300 fix(nvim): incorrect notify level commit 3b5a92a Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Tue Jun 18 14:13:30 2024 +0300 chore(nvim): update packages commit c7c1f11 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Tue Jun 18 14:13:24 2024 +0300 fix(nvim): warning for deprecated gitsigns opt commit 58cd290 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Mon Jun 17 18:03:39 2024 +0300 refactor(nvim): lsp_signature has comments commit 8b4b9d3 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Mon Jun 17 18:03:16 2024 +0300 chore(nvim): update packages commit 900df4a Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Mon Jun 17 18:02:55 2024 +0300 feat(zsh): global aliases for automatically highlighting help messages commit 1733f04 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Mon Jun 17 14:50:01 2024 +0300 chore(aerospace): remove deprecated default configs commit ed39935 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Mon Jun 17 14:49:47 2024 +0300 feat(nvim): reenable luasnip, the build in snippets are annoying commit 086f7ee Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Mon Jun 17 14:49:28 2024 +0300 chore(nvim): update packages commit 3921676 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Sun Jun 16 09:31:19 2024 +0300 chore(nvim): update packages commit 52033e5 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Sat Jun 15 18:45:15 2024 +0300 chore(nvim): update packages commit 98e2c11 Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Fri Jun 14 11:16:22 2024 +0300 chore(nvim): update packages commit d6cc36b Author: Mika Vilpas <mika.vilpas@gmail.com> Date: Fri Jun 14 11:16:20 2024 +0300 feat(zsh): add luarocks to PATH
This was referenced Jan 23, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For now, this change is opt-in (disabled by default).
This change makes it possible to highlight the currently hovered file with a
style of the user's own choosing.
highlight-hovered-buffer.mov
To enable it, you need to do the following steps in your configuration:
use_ya_for_events_reading = true
For now, the color needs to be configured manually. In the future we may have a
good default color. If you use catppuccin, you can find all the colors in the
palette here: https://catppuccin.com/palette. I used the
Surface 0
colorfrom my catppuccin macchiato palette.