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

Block-like modern UI for Harpoon.nvim #259

Open
lenhard01 opened this issue Nov 9, 2024 · 2 comments
Open

Block-like modern UI for Harpoon.nvim #259

lenhard01 opened this issue Nov 9, 2024 · 2 comments

Comments

@lenhard01
Copy link

I really like the Telescope UI customization and would like Harpoon's default config with just the floating window to look just the same. I don't know if there are ways to implement this in neovim, I am a fairly new neovim user and I have no clue how.

@rebelot
Copy link
Owner

rebelot commented Nov 9, 2024

I don't know much about harpoon but the customization should be no different than with telescope, you need to find the appropriate highlight groups that control the plugin appearance, usually there is a highlight section in the plugins docs, or just <Tab> through :hi Harp

@gokhangeyik
Copy link

gokhangeyik commented Jan 13, 2025

Since Harpoon does not create its own highlights, overriding normal floats works just fine. You can see an example at the following link:

https://github.com/gokhangeyik/dotfiles/blob/main/nvim/lua/plugins/themes/kanagawa.lua#L31-L37

I've also created a small function to ensure that floats are always centered in the editor and that their titles are also centered, with a background color applied.
https://github.com/gokhangeyik/dotfiles/blob/main/nvim/lua/config/GokkoNvim.lua#L61-L81

Screenshot_20250113_173919

It's highly likely that this is not the best way to achieve the desired result, but I’m quite new to this and am trying to find my own solutions. :)
If you like it, feel free to use it.

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

No branches or pull requests

3 participants