From 28af2eaa8bdd6ffb2283f3e53cabc1801a4686e7 Mon Sep 17 00:00:00 2001 From: Tom Meagher Date: Tue, 10 Sep 2024 22:26:50 -0400 Subject: [PATCH] feat(nvim): scrollbar --- .config/nvim/lazy-lock.json | 1 + .config/nvim/lua/plugins.lua | 25 ++++++++++++++++++++++--- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index 41a018c..c696d10 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -22,6 +22,7 @@ "nvim-cmp": { "branch": "main", "commit": "ae644feb7b67bf1ce4260c231d1d4300b19c6f30" }, "nvim-lastplace": { "branch": "main", "commit": "0bb6103c506315044872e0f84b1f736c4172bb20" }, "nvim-lspconfig": { "branch": "master", "commit": "bdbc65aadc708ce528efb22bca5f82a7cca6b54d" }, + "nvim-scrollbar": { "branch": "main", "commit": "d09f14aa16c9f2748e77008f9da7b1f76e4e7b85" }, "nvim-snippets": { "branch": "main", "commit": "56b4052f71220144689caaa2e5b66222ba5661eb" }, "nvim-treesitter": { "branch": "master", "commit": "ccbaee59547425ef8b766433a6020ac191f3151f" }, "nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" }, diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index ad85b72..de511a2 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -317,7 +317,6 @@ return { end end, }, - { "progress", color = "MsgArea" }, { "location", color = "MsgArea" }, }, lualine_y = {}, @@ -917,7 +916,7 @@ return { end, desc = "Select TS workspace version", }, - { "", "TwoslashQueriesInspect", desc = "Twoslash Inspect" }, + { "", "TwoslashQueriesInspect", desc = "Twoslash Inspect" }, }, }, }, @@ -1065,7 +1064,6 @@ return { -- mason.nvim (https://github.com/williamboman/mason.nvim) { - "williamboman/mason.nvim", cmd = "Mason", keys = { @@ -1103,6 +1101,27 @@ return { end, }, + -- nvim-scrollbar (https://github.com/nvim-scrollbar) + { + "petertriho/nvim-scrollbar", + event = "BufReadPost", + config = function() + local scrollbar = require("scrollbar") + scrollbar.setup({ + excluded_filetypes = { "neo-tree", "prompt", "TelescopePrompt", "noice", "notify" }, + handlers = { + cursor = false, + diagnostic = true, + gitsigns = false, -- Requires gitsigns + handle = true, + search = false, -- Requires hlslens + }, + hide_if_all_visible = false, + set_highlights = false, + }) + end, + }, + -- nvim-treesitter (https://github.com/nvim-treesitter/nvim-treesitter) { "nvim-treesitter/nvim-treesitter",