diff options
Diffstat (limited to 'lua/plugins.lua')
-rw-r--r-- | lua/plugins.lua | 136 |
1 files changed, 133 insertions, 3 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua index 35e8e72..281515c 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -2,6 +2,8 @@ LAZY_NVIM_REPO_URL = "https://github.com/folke/lazy.nvim.git" LAZY_NVIM_PATH = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" LAZY_NVIM_REF = "v11.14.1" +AYU_NVIM_PLUGIN_PRIO = 100 + local function bootstrap_plugin_manager() if not (vim.uv or vim.loop).fs_stat(LAZY_NVIM_PATH) then local out = vim.fn.system({ @@ -40,21 +42,136 @@ require("lazy").setup({ { "Shatur/neovim-ayu", commit = "d7a2b754c9f9be3c30e14a53d6cfda3e111edd24", + priority = AYU_NVIM_PLUGIN_PRIO, + main = "ayu", + opts = function() + local ayu_colors = require('ayu.colors') + + ayu_colors.generate() + + ayu_colors.entity = "#3EB8FF" + ayu_colors.tag = ayu_colors.fg + + -- The colors should not be regenerated + require("ayu.colors").generate = function() end + + return { + overrides = { + WinSeparator = { fg = ayu_colors.comment, bg = ayu_colors.bg }, + LineNrAbove = { fg = ayu_colors.comment }, + LineNrBelow = { fg = ayu_colors.comment }, + LineNr = { fg = ayu_colors.accent }, + TerminalWindow = { fg = ayu_colors.fg, bg = ayu_colors.panel_bg }, + ColorColumn = { bg = ayu_colors.error }, + RainbowRed ={ fg = "#E06C75" }, + RainbowYellow = { fg = "#E5C07B" }, + RainbowBlue = { fg = "#61AFEF" }, + RainbowOrange = { fg = "#D19A66" }, + RainbowGreen = { fg = "#98C379" }, + RainbowViolet = { fg = "#C678DD" }, + RainbowCyan = { fg = "#56B6C2" }, + } + } + end, + config = function(_, opts) + require("ayu").setup(opts) + + vim.cmd("colorscheme ayu") + end }, { "nvim-lualine/lualine.nvim", commit = "0a5a66803c7407767b799067986b4dc3036e1983", - dependencies = { "nvim-tree/nvim-web-devicons" } + dependencies = { "nvim-tree/nvim-web-devicons" }, + opts = { + options = { + theme = "ayu_dark", + globalstatus = true, + }, + } }, { "akinsho/bufferline.nvim", tag = "v4.6.1", - dependencies = { "nvim-tree/nvim-web-devicons" } + dependencies = { "nvim-tree/nvim-web-devicons" }, + priority = AYU_NVIM_PLUGIN_PRIO - 10, + opts = function() + local selected_buffer_bg = "#1E2126" + + local ayu_colors = require("ayu.colors") + + return { + options = { + style_preset = require("bufferline").style_preset.no_italic, + show_buffer_close_icons = false, + show_close_icon = false, + indicator = { + style = "none" + }, + diagnostics = "coc", + }, + highlights = { + buffer_selected = { + bg = selected_buffer_bg + }, + buffer_visible = { + bg = selected_buffer_bg + }, + diagnostic_selected = { + bg = selected_buffer_bg + }, + hint_selected = { + bg = selected_buffer_bg + }, + info_selected = { + bg = selected_buffer_bg + }, + warning_selected = { + bg = selected_buffer_bg + }, + error_selected = { + bg = selected_buffer_bg + }, + indicator_selected = { + fg = ayu_colors.accent + } + } + } + end }, { "lukas-reineke/indent-blankline.nvim", main = "ibl", tag = "v3.5.3", + priority = AYU_NVIM_PLUGIN_PRIO - 20, + opts = function() + return { + indent = { char = '¦' }, + scope = { + highlight = { + "RainbowRed", + "RainbowYellow", + "RainbowBlue", + "RainbowOrange", + "RainbowGreen", + "RainbowViolet", + "RainbowCyan", + }, + show_start = false, + show_exact_scope = false + } + } + end, + config = function(_, opts) + require("ibl").setup(opts) + + local hooks = require "ibl.hooks" + + hooks.register( + hooks.type.SCOPE_HIGHLIGHT, + hooks.builtin.scope_highlight_from_extmark + ) + end }, -- Style end -- Telescope @@ -146,7 +263,20 @@ require("lazy").setup({ }, { "https://gitlab.com/HiPhish/rainbow-delimiters.nvim", - commit = "d227e6c9879bb50af35cd733461198666981d482" -- 0.6.2 + commit = "d227e6c9879bb50af35cd733461198666981d482", -- 0.6.2 + init = function() + vim.g.rainbow_delimiters = { + highlight = { + "RainbowRed", + "RainbowYellow", + "RainbowBlue", + "RainbowOrange", + "RainbowGreen", + "RainbowViolet", + "RainbowCyan", + }, + } + end }, -- Syntax & formatting end -- Markdown |