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

feat(plugins): add harpoon support #101

Merged
merged 2 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ term.foreground
| [dashboard-nvim](https://github.com/glepnir/dashboard-nvim) | `dashboard-nvim` |
| [flash.nvim](https://github.com/folke/flash.nvim) | `flash` |
| [gitsigns.nvim](https://github.com/lewis6991/gitsigns.nvim) | `gitsigns` |
| [hop.nvim](https://github.com/phaazon/hop.nvim/) | `hop` |
| [harpoon](https://github.com/ThePrimeagen/harpoon) | `harpoon` |
| [hop.nvim](https://github.com/phaazon/hop.nvim) | `hop` |
| [indent_blankline.nvim](https://github.com/lukas-reineke/indent-blankline.nvim) | `indent-blankline` |
| [lightspeed.nvim](https://github.com/ggandor/lightspeed.nvim) | `lightspeed` |
| [lualine.nvim](https://github.com/nvim-lualine/lualine.nvim) | `lualine` |
Expand Down
30 changes: 30 additions & 0 deletions lua/astrotheme/groups/plugins/harpoon.lua
trimclain marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
local function callback(opts)
return {
HarpoonWindow = {
fg = C.ui.text,
bg = (opts.border and opts.inactive and C.ui.base)
or (opts.border and opts.float and C.ui.base)
or (opts.inactive and C.ui.prompt)
or (opts.float and C.ui.prompt)
or (opts.transparent and C.none)
or C.ui.base,
blend = vim.o.winblend or 0,
},
HarpoonBorder = {
fg = (opts.border and C.ui.border) or (opts.inactive and C.ui.base) or (opts.float and C.ui.prompt) or C.ui.base,
bg = (opts.border and opts.inactive and C.ui.base) or (opts.float and C.ui.prompt) or C.ui.prompt,
blend = vim.o.winblend or 0,
},
HarpoonTitle = {
fg = (opts.title_invert and C.ui.float) or C.ui.title,
bg = (opts.title_invert and C.ui.title)
or (opts.float and C.ui.prompt)
or (opts.transparent and C.none)
or C.ui.base,
blend = vim.o.winblend or 0,
bold = true,
},
}
end

return callback
1 change: 1 addition & 0 deletions lua/astrotheme/groups/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ return {
["dashboard-nvim"] = "dashboard-nvim",
["flash.nvim"] = "flash",
["gitsigns.nvim"] = "gitsigns",
["harpoon"] = "harpoon",
["hop.nvim"] = "hop",
["indent-blankline.nvim"] = "indent-blankline",
["neogit"] = "neogit",
Expand Down