✨ feat(nvim): added scrollbar extra
This commit is contained in:
parent
774f2b01e8
commit
b7b3c9d77f
4 changed files with 11 additions and 84 deletions
|
@ -28,6 +28,7 @@
|
|||
"plugins.extras.git",
|
||||
"plugins.extras.github",
|
||||
"plugins.extras.rest-client",
|
||||
"plugins.extras.scrollbar",
|
||||
"plugins.extras.test-extended"
|
||||
],
|
||||
"news": {
|
||||
|
|
9
.config/nvim/lua/plugins/extras/scrollbar.lua
Normal file
9
.config/nvim/lua/plugins/extras/scrollbar.lua
Normal file
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
{
|
||||
"lewis6991/satellite.nvim",
|
||||
opts = {
|
||||
excluded_filetypes = { "neo-tree", "alpha", "symbols-outline" },
|
||||
},
|
||||
event = "BufRead",
|
||||
},
|
||||
}
|
|
@ -1,64 +0,0 @@
|
|||
return {
|
||||
{
|
||||
"lewis6991/satellite.nvim",
|
||||
event = "BufRead",
|
||||
enabled = false,
|
||||
opts = {
|
||||
current_only = true,
|
||||
winblend = 50,
|
||||
zindex = 40,
|
||||
excluded_filetypes = {},
|
||||
width = 2,
|
||||
handlers = {
|
||||
cursor = {
|
||||
enable = true,
|
||||
-- Supports any number of symbols
|
||||
symbols = { "⎺", "⎻", "⎼", "⎽" },
|
||||
-- symbols = { '⎻', '⎼' }
|
||||
-- Highlights:
|
||||
-- - SatelliteCursor (default links to NonText
|
||||
},
|
||||
search = {
|
||||
enable = true,
|
||||
-- Highlights:
|
||||
-- - SatelliteSearch (default links to Search)
|
||||
-- - SatelliteSearchCurrent (default links to SearchCurrent)
|
||||
},
|
||||
diagnostic = {
|
||||
enable = true,
|
||||
signs = { "-", "=", "≡" },
|
||||
min_severity = vim.diagnostic.severity.HINT,
|
||||
-- Highlights:
|
||||
-- - SatelliteDiagnosticError (default links to DiagnosticError)
|
||||
-- - SatelliteDiagnosticWarn (default links to DiagnosticWarn)
|
||||
-- - SatelliteDiagnosticInfo (default links to DiagnosticInfo)
|
||||
-- - SatelliteDiagnosticHint (default links to DiagnosticHint)
|
||||
},
|
||||
gitsigns = {
|
||||
enable = true,
|
||||
signs = { -- can only be a single character (multibyte is okay)
|
||||
add = "│",
|
||||
change = "│",
|
||||
delete = "-",
|
||||
},
|
||||
-- Highlights:
|
||||
-- SatelliteGitSignsAdd (default links to GitSignsAdd)
|
||||
-- SatelliteGitSignsChange (default links to GitSignsChange)
|
||||
-- SatelliteGitSignsDelete (default links to GitSignsDelete)
|
||||
},
|
||||
marks = {
|
||||
enable = true,
|
||||
show_builtins = false, -- shows the builtin marks like [ ] < >
|
||||
key = "m",
|
||||
-- Highlights:
|
||||
-- SatelliteMark (default links to Normal)
|
||||
},
|
||||
quickfix = {
|
||||
signs = { "-", "=", "≡" },
|
||||
-- Highlights:
|
||||
-- SatelliteQuickfix (default links to WarningMsg)
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
return {
|
||||
{
|
||||
"dstein64/nvim-scrollview",
|
||||
event = "BufReadPost",
|
||||
enabled = false,
|
||||
keys = { { "<leader>uS", "<cmd>ScrollViewToggle<CR>", desc = "Toggle Scrollview" } },
|
||||
config = function()
|
||||
require("scrollview").setup({
|
||||
excluded_filetypes = { "neo-tree", "alpha", "symbols-outline" },
|
||||
signs_column = 0,
|
||||
winblend = 25,
|
||||
diagnostics_error_symbol = "",
|
||||
diagnostics_warn_symbol = "",
|
||||
diagnostics_info_symbol = "",
|
||||
diagnostics_hint_symbol = "",
|
||||
})
|
||||
end,
|
||||
},
|
||||
}
|
Loading…
Add table
Reference in a new issue