dotfiles/tools/nvim/lua/plugins/appearance.lua

126 lines
3.2 KiB
Lua

-- https://stackoverflow.com/a/73365602
vim.api.nvim_create_autocmd("TextYankPost", {
group = vim.api.nvim_create_augroup("highlight_yank", {}),
desc = "Hightlight selection on yank",
pattern = "*",
callback = function()
vim.highlight.on_yank({ higroup = "IncSearch", timeout = 500 })
end,
})
return {
-- Colorschemes
{
"catppuccin/nvim",
name = "catppuccin",
lazy = true,
opts = {
flavor = "auto",
background = {
light = "latte",
dark = "mocha",
},
integrations = {
-- lualine = true,
"lualine",
},
},
},
{
"rose-pine/neovim",
name = "rose-pine",
opts = {
variant = "dawn",
},
cmd = "Telescope colorscheme",
},
-- { "olimorris/onedarkpro.nvim", cmd = "Telescope colorscheme" },
{ "rebelot/kanagawa.nvim", cmd = "Telescope colorscheme" },
-- -- Highlight objects under the cursor
-- { "RRethy/vim-illuminate" },
{ -- Modern Status Line
"nvim-lualine/lualine.nvim",
dependencies = { "nvim-tree/nvim-web-devicons" },
event = "VeryLazy",
config = function()
require("plugins.mod.lualine")
end,
},
-- { -- Highlight yanked text
-- "gbprod/yanky.nvim",
-- event = "LazyFile",
-- opts = {
-- highlight = {
-- on_put = true,
-- on_yank = true,
-- timer = 500,
-- },
-- },
-- },
-- { import = "plugins.mod.alpha-nvim" }, -- Dashboard
{ -- Breadcrumb
"Bekaboo/dropbar.nvim",
dependencies = {
"nvim-telescope/telescope-fzf-native.nvim",
build = "make",
},
opts = {},
keys = {
{
"<Leader>+",
function()
require("dropbar.api").pick()
end,
desc = "Pick symbols in winbar",
},
{
"[;",
function()
require("dropbar.api").goto_context_start()
end,
desc = "Go to start of current context",
},
{
"];",
function()
require("dropbar.api").select_next_context()
end,
desc = "Select next context",
},
},
},
{ import = "plugins.mod.bufferline" }, -- Buffer Top Bar
{ -- Git Blames, Changes
"lewis6991/gitsigns.nvim",
opts = {
current_line_blame = true,
},
keys = {
{ "<leader>gb", "<cmd>Gitsigns blame<CR>", desc = "Blame file" },
{ "<leader>gd", "<cmd>Gitsigns diffthis<CR>", desc = "Diff file" },
{ "<leader>gB", "<cmd>Gitsigns toggle_current_line_blame<CR>", desc = "Toggle line blame" },
},
},
{ -- Highlight and navigate between TODOs
"folke/todo-comments.nvim",
cmd = { "TodoTelescope" },
event = "BufRead",
opts = {},
dependencies = { "nvim-lua/plenary.nvim" },
},
-- {
-- "folke/noice.nvim",
-- event = "VeryLazy",
-- opts = {
-- -- add any options here
-- },
-- dependencies = {
-- -- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
-- "MunifTanjim/nui.nvim",
-- -- OPTIONAL:
-- -- `nvim-notify` is only needed, if you want to use the notification view.
-- -- If not available, we use `mini` as the fallback
-- "rcarriga/nvim-notify",
-- },
-- },
}