mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-11-12 04:52:53 +01:00
33 lines
740 B
Lua
33 lines
740 B
Lua
local lline = require "lualine"
|
|
local navic = require "nvim-navic"
|
|
|
|
local function navic_component()
|
|
if navic.is_available() then
|
|
local data = navic.get_data()
|
|
local s = ""
|
|
|
|
for i, v in ipairs(data) do
|
|
if v.type ~= "Package" then
|
|
if i ~= 1 then
|
|
s = s .. " "
|
|
end
|
|
|
|
s = s .. v.icon .. v.name
|
|
end
|
|
end
|
|
|
|
return s
|
|
end
|
|
return ""
|
|
end
|
|
|
|
lline.setup {
|
|
options = {
|
|
theme = "dracula",
|
|
},
|
|
sections = {
|
|
lualine_b = { "branch", "diff", "lsp_progress" },
|
|
lualine_c = { "filename", "diagnostics" },
|
|
lualine_x = { "fileformat", "filetype", navic_component },
|
|
},
|
|
}
|