mirror of
https://github.com/tiyn/dotfiles.git
synced 2026-03-28 10:24:47 +01:00
NVIM: Split opts and config for lazy plugins
This commit is contained in:
@@ -5,52 +5,34 @@ return {
|
||||
"kevinhwang91/nvim-hlslens",
|
||||
"lewis6991/gitsigns.nvim",
|
||||
},
|
||||
config = function()
|
||||
require("scrollbar").setup({
|
||||
marks = {
|
||||
Cursor = {
|
||||
highlight = "Normal",
|
||||
},
|
||||
Search = {
|
||||
highlight = "Special",
|
||||
},
|
||||
Error = {
|
||||
highlight = "DiagnosticSignError",
|
||||
},
|
||||
Warn = {
|
||||
highlight = "DiagnosticSignWarn",
|
||||
},
|
||||
Info = {
|
||||
highlight = "DiagnosticSignInfo",
|
||||
},
|
||||
Hint = {
|
||||
highlight = "DiagnosticSignHint",
|
||||
},
|
||||
Misc = {
|
||||
highlight = "Special",
|
||||
},
|
||||
GitAdd = {
|
||||
highlight = "GitGutterAdd",
|
||||
},
|
||||
GitChange = {
|
||||
highlight = "GitGutterChange",
|
||||
},
|
||||
GitDelete = {
|
||||
highlight = "GitGutterDelete",
|
||||
},
|
||||
},
|
||||
excluded_filetypes = {
|
||||
"cmp_docs",
|
||||
"cmp_menu",
|
||||
"noice",
|
||||
"prompt",
|
||||
"TelescopePrompt",
|
||||
"NvimTree",
|
||||
"Navbuddy",
|
||||
"FTerm",
|
||||
"",
|
||||
},
|
||||
})
|
||||
opts = {
|
||||
marks = {
|
||||
Cursor = { highlight = "Normal" },
|
||||
Search = { highlight = "Special" },
|
||||
Error = { highlight = "DiagnosticSignError" },
|
||||
Warn = { highlight = "DiagnosticSignWarn" },
|
||||
Info = { highlight = "DiagnosticSignInfo" },
|
||||
Hint = { highlight = "DiagnosticSignHint" },
|
||||
Misc = { highlight = "Special" },
|
||||
GitAdd = { highlight = "GitGutterAdd" },
|
||||
GitChange = { highlight = "GitGutterChange" },
|
||||
GitDelete = { highlight = "GitGutterDelete" },
|
||||
},
|
||||
excluded_filetypes = {
|
||||
"cmp_docs",
|
||||
"cmp_menu",
|
||||
"noice",
|
||||
"prompt",
|
||||
"TelescopePrompt",
|
||||
"NvimTree",
|
||||
"Navbuddy",
|
||||
"FTerm",
|
||||
"",
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
local scrollbar = require("scrollbar")
|
||||
scrollbar.setup(opts)
|
||||
require("scrollbar.handlers.search").setup()
|
||||
require("scrollbar.handlers.gitsigns").setup()
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user