added custom status column

This commit is contained in:
Sven Vogel 2023-11-29 09:24:47 +01:00
parent 36147cfea3
commit 430281ec07
6 changed files with 89 additions and 23 deletions

19
lua/plugins/barbecue.lua Normal file
View File

@ -0,0 +1,19 @@
return {
{
"utilyre/barbecue.nvim",
name = "barbecue",
version = "*",
dependencies = {
"SmiteshP/nvim-navic",
"nvim-tree/nvim-web-devicons", -- optional dependency
},
opts = {
exclude_filetypes = {
"netrw",
"toggleterm",
"neo-tree",
"outline"
},
},
}
}

View File

@ -24,6 +24,8 @@ return {
-- this is taken care of by lualine
-- enabling this messes up the actual laststatus setting after loading a file
statusline = false,
tabline = true,
winbar = true
},
config = {
header = vim.split(logo, "\n"),

View File

@ -114,27 +114,6 @@ return {
lualine_y = { 'progress' },
lualine_z = { 'location' },
},
winbar = {
lualine_c = {
{
"navic",
color_correction = nil,
navic_opts = {
click = true,
depth_limit = 4,
depth_limit_indicator = "",
separator = "",
icons = require("lazyvim.config").icons.kinds,
lazy_update_context = true,
}
}
}
},
inactive_winbar = {
lualine_c = {
'filename',
},
},
},
dependencies = {
'nvim-tree/nvim-web-devicons',

View File

@ -7,11 +7,9 @@ return {
},
signs_on_startup = {
'conflicts',
'diagnostics',
'search',
'cursor'
},
}
}
}

43
lua/plugins/statuscol.lua Normal file
View File

@ -0,0 +1,43 @@
return {
{
"luukvbaal/statuscol.nvim",
config = function()
local builtin = require("statuscol.builtin")
require("statuscol").setup({
ft_ignore = {
"neo-tree",
"toggleterm",
"dashboard",
"outline"
},
segments = {
-- folds
{
text = { builtin.foldfunc },
click = "v:lua.ScFa"
},
-- diagnostic signs
{
sign = {
name = { "Diagnostic" },
colwidth = 2,
maxwidth = 1,
condition = { true }
},
click = "v:lua.ScSa"
},
-- line numbers
{
text = { builtin.lnumfunc, " " },
click = "v:lua.ScLa",
},
-- git signs
{
sign = { namespace = { "gitsigns" } },
click = "v:lua.ScSa"
}
}
})
end,
}
}

25
lua/plugins/ufo.lua Normal file
View File

@ -0,0 +1,25 @@
return {
{
"kevinhwang91/nvim-ufo",
event = {
"InsertEnter"
},
dependencies = {
"kevinhwang91/promise-async"
},
opts = {
preview = {
mappings = {
scrollB = "<C-b>",
scrollF = "<C-f>",
scrollU = "<C-u>",
scrollD = "<C-d>",
},
},
-- register treesitter as source for scopes
provider_selector = function(_, _, _)
return { 'treesitter', 'indent' }
end
}
}
}