Fix scrollbar

This commit is contained in:
Christian Nieves
2024-01-04 22:56:04 +00:00
parent ece8d50bef
commit df15c25cd5
4 changed files with 17 additions and 2 deletions

View File

@ -67,6 +67,7 @@
"nvim-cmp-buffer-lines": { "branch": "master", "commit": "924ccc04dc5c919b6baa05d45818025baa82699a" }, "nvim-cmp-buffer-lines": { "branch": "master", "commit": "924ccc04dc5c919b6baa05d45818025baa82699a" },
"nvim-dap": { "branch": "master", "commit": "f0dca670fa059eb89dda8869a6310c804241345c" }, "nvim-dap": { "branch": "master", "commit": "f0dca670fa059eb89dda8869a6310c804241345c" },
"nvim-dap-ui": { "branch": "master", "commit": "7e5e16427aaf814dc2d58e1b219def9ef2fa2435" }, "nvim-dap-ui": { "branch": "master", "commit": "7e5e16427aaf814dc2d58e1b219def9ef2fa2435" },
"nvim-hlslens": { "branch": "main", "commit": "8ffc64bb6b624612cf762982b92633f283f7a715" },
"nvim-jdtls": { "branch": "master", "commit": "66b5ace68a5d1c45fdfb1afa8d847e87af2aa1f8" }, "nvim-jdtls": { "branch": "master", "commit": "66b5ace68a5d1c45fdfb1afa8d847e87af2aa1f8" },
"nvim-lightbulb": { "branch": "master", "commit": "8f00b89dd1b1dbde16872bee5fbcee2e58c9b8e9" }, "nvim-lightbulb": { "branch": "master", "commit": "8f00b89dd1b1dbde16872bee5fbcee2e58c9b8e9" },
"nvim-lint": { "branch": "master", "commit": "d44185d3e57e00c164485a454174294b36ef7067" }, "nvim-lint": { "branch": "master", "commit": "d44185d3e57e00c164485a454174294b36ef7067" },

View File

@ -21,6 +21,15 @@ return {
end, end,
lazy = false, lazy = false,
}, },
{
"kevinhwang91/nvim-hlslens",
config = function()
-- require('hlslens').setup() is not required
require("scrollbar.handlers.search").setup({
-- hlslens config overrides
})
end,
},
{ "udalov/kotlin-vim", ft = "kotlin" }, { "udalov/kotlin-vim", ft = "kotlin" },
{ "ray-x/go.nvim", ft = "go" }, { "ray-x/go.nvim", ft = "go" },
{ "ray-x/guihua.lua", ft = "go" }, { "ray-x/guihua.lua", ft = "go" },

View File

@ -3,7 +3,12 @@ return {
{ {
"lewis6991/gitsigns.nvim", "lewis6991/gitsigns.nvim",
dependencies = "nvim-lua/plenary.nvim", dependencies = "nvim-lua/plenary.nvim",
event = "User ActuallyEditing", event = "VimEnter",
config = function()
require("gitsigns").setup()
-- also show signs in scrollbar
require("scrollbar.handlers.gitsigns").setup()
end,
}, },
{ {
"akinsho/git-conflict.nvim", "akinsho/git-conflict.nvim",

View File

@ -57,7 +57,7 @@ return {
return true return true
end end
local max_filesize = 100 * 1024 -- 200 KB local max_filesize = 200 * 1024 -- 200 KB
local fname = vim.api.nvim_buf_get_name(buf) local fname = vim.api.nvim_buf_get_name(buf)
local ok, stats = pcall(vim.loop.fs_stat, fname) local ok, stats = pcall(vim.loop.fs_stat, fname)
if ok and stats and stats.size > max_filesize then if ok and stats and stats.size > max_filesize then