feat: trouble v3

This commit is contained in:
Folke Lemaitre 2024-05-30 14:41:13 +02:00
parent ae098d67d6
commit 95d055dcf7
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
7 changed files with 47 additions and 134 deletions

View file

@ -128,6 +128,17 @@ return {
vim.o.laststatus = vim.g.lualine_laststatus
local trouble = require("trouble")
local symbols = trouble.statusline
and trouble.statusline({
mode = "symbols",
groups = {},
title = false,
filter = { range = true },
format = "{kind_icon}{symbol.name:Normal}",
hl_group = "lualine_c_normal",
})
return {
options = {
theme = "auto",
@ -151,6 +162,10 @@ return {
},
{ "filetype", icon_only = true, separator = "", padding = { left = 1, right = 0 } },
{ LazyVim.lualine.pretty_path() },
{
symbols and symbols.get,
cond = symbols and symbols.has,
},
},
lualine_x = {
-- stylua: ignore