This commit is contained in:
Christian Nieves
2024-01-04 23:20:25 +00:00
parent df15c25cd5
commit 2fcda354a9
5 changed files with 61 additions and 54 deletions

View File

@ -14,22 +14,6 @@ return {
require("presence").setup({ show_time = false }) require("presence").setup({ show_time = false })
end, end,
}, },
{
"petertriho/nvim-scrollbar",
config = function()
require("scrollbar").setup()
end,
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

@ -44,33 +44,6 @@ return {
local icon = symbols[level] or level local icon = symbols[level] or level
return "" .. icon .. count return "" .. icon .. count
end, end,
custom_areas = {
left = function()
local result = {}
local seve = vim.diagnostic.severity
local error = #vim.diagnostic.get(0, { severity = seve.ERROR })
local warning = #vim.diagnostic.get(0, { severity = seve.WARN })
local info = #vim.diagnostic.get(0, { severity = seve.INFO })
local hint = #vim.diagnostic.get(0, { severity = seve.HINT })
if error ~= 0 then
table.insert(result, { text = "" .. error, fg = "#EC5241" })
end
if warning ~= 0 then
table.insert(result, { text = "" .. warning, fg = "#EFB839" })
end
if hint ~= 0 then
table.insert(result, { text = "󱠂 " .. hint, fg = "#A3BA5E" })
end
if info ~= 0 then
table.insert(result, { text = "" .. info, fg = "#7EA9A7" })
end
return result
end,
},
max_name_length = 30, max_name_length = 30,
truncate_name = false, truncate_name = false,
show_close_icon = false, show_close_icon = false,

View File

@ -1,15 +1,13 @@
return { return {
-- Git -- Git
{ -- {
"lewis6991/gitsigns.nvim", -- "lewis6991/gitsigns.nvim",
dependencies = "nvim-lua/plenary.nvim", -- dependencies = "nvim-lua/plenary.nvim",
event = "VimEnter", -- event = "VimEnter",
config = function() -- config = function()
require("gitsigns").setup() -- require("gitsigns").setup()
-- also show signs in scrollbar -- end,
require("scrollbar.handlers.gitsigns").setup() -- },
end,
},
{ {
"akinsho/git-conflict.nvim", "akinsho/git-conflict.nvim",
version = "*", version = "*",

View File

@ -0,0 +1,42 @@
return {
-- {
-- "dstein64/nvim-scrollview",
-- config = function()
-- require("scrollview").setup({
-- excluded_filetypes = { "nerdtree" },
-- current_only = true,
-- -- base = "buffer",
-- -- column = 80,
-- signs_on_startup = { "all" },
-- diagnostics_severities = { vim.diagnostic.severity.ERROR },
-- })
-- end,
-- },
{
"petertriho/nvim-scrollbar",
config = function()
require("scrollbar").setup({
show_in_active_only = true,
excluded_filetypes = {
"cmp_docs",
"cmp_menu",
"noice",
"prompt",
"TelescopePrompt",
"neo-tree",
},
})
end,
lazy = false,
},
{
"kevinhwang91/nvim-hlslens",
config = function()
-- require('hlslens').setup() is not required
require("scrollbar.handlers.search").setup({
-- hlslens config overrides
})
end,
},
}

View File

@ -59,6 +59,16 @@ return {
config = function() config = function()
vim.g.signify_vcs_list = { "hg", "git" } vim.g.signify_vcs_list = { "hg", "git" }
-- vim.g.signify_sign_change = "*" -- vim.g.signify_sign_change = "*"
vim.g.signify_sign_delete = "-" -- vim.g.signify_sign_delete = "-"
-- vim.g.signify_line_highlight = 0
vim.g.signify_sign_add = ""
vim.g.signify_sign_delete = ""
vim.g.signify_sign_change = ""
vim.api.nvim_set_hl(0, "SignifySignAdd", { ctermfg = "green", fg = "#79b7a5" })
vim.api.nvim_set_hl(0, "SignifySignChange", { ctermfg = "yellow", fg = "#ffffcc" })
vim.api.nvim_set_hl(0, "SignifySignChangeDelete", { ctermfg = "red", fg = "#ff7b72" })
vim.api.nvim_set_hl(0, "SignifySignDelete", { ctermfg = "red", fg = "#ff7b72" })
vim.api.nvim_set_hl(0, "SignifySignDeleteDeleteFirstLine", { ctermfg = "red", fg = "#ff7b72" })
-- vim.cmd("highlight SignColumn ctermbg=NONE cterm=NONE guibg=NONE gui=NONE")
end, end,
} }