Skip to content

Commit

Permalink
feat(nvim): scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm committed Sep 11, 2024
1 parent 51e58b9 commit 28af2ea
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
1 change: 1 addition & 0 deletions .config/nvim/lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down
25 changes: 22 additions & 3 deletions .config/nvim/lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,6 @@ return {
end
end,
},
{ "progress", color = "MsgArea" },
{ "location", color = "MsgArea" },
},
lualine_y = {},
Expand Down Expand Up @@ -917,7 +916,7 @@ return {
end,
desc = "Select TS workspace version",
},
{ "<C-k>", "<cmd>TwoslashQueriesInspect<CR>", desc = "Twoslash Inspect" },
{ "<C-\\>", "<cmd>TwoslashQueriesInspect<CR>", desc = "Twoslash Inspect" },
},
},
},
Expand Down Expand Up @@ -1065,7 +1064,6 @@ return {

-- mason.nvim (https://github.com/williamboman/mason.nvim)
{

"williamboman/mason.nvim",
cmd = "Mason",
keys = {
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 28af2ea

Please sign in to comment.