🪴 my neovim config:)
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

lylla: fix components

robin fc0f4470 67132665

+14 -10
+14 -10
config/config/lylla.lua
··· 100 100 "Filetype", 101 101 }, 102 102 }), 103 - { "%<" }, 104 - { " " }, 103 + "%<", 104 + " ", 105 105 lylla.component(function() 106 106 if vim.bo.buftype == "" then 107 107 return {} 108 108 end 109 109 return { 110 110 vim.fn.bufname(), 111 + " ", 111 112 } 112 113 end), 113 - { " " }, 114 114 lylla.component(function() 115 115 return utils.get_searchcount() 116 116 end), 117 - { "%=" }, 118 - {}, 119 - { "%=" }, 117 + "%=", 120 118 lylla.component(function() 121 119 local progress = vim.ui.progress_status() 122 120 if #progress == 0 then ··· 129 127 end, { events = { "Progress" } }), 130 128 lylla.component(function() 131 129 if not package.loaded["vim.diagnostic"] then 132 - return "" 130 + return {} 133 131 end 134 - return vim.diagnostic.status() 132 + return { 133 + vim.diagnostic.status(), 134 + " ", 135 + } 135 136 end, { 136 137 events = { "DiagnosticChanged" }, 137 138 }), 138 - { " " }, 139 139 lylla.component(function() 140 140 local clients = components.lsp_clients({ 141 141 filter = function(c) ··· 147 147 return { 148 148 { { "lsp :: " }, { clients or "none" } }, 149 149 { " | ", "NonText" }, 150 + } 151 + end, { events = { "FileType", "LspAttach" } }), 152 + lylla.component(function() 153 + return { 150 154 { { "fmt :: " }, { get_fmt() or "none" } }, 151 155 { " | ", "NonText" }, 152 156 } 153 157 end, { events = { "FileType", "LspAttach" } }), 154 158 lylla.component(function() 155 159 if not vim.o.ruler then 156 - return "" 160 + return {} 157 161 end 158 162 if vim.o.rulerformat == "" then 159 163 return "%-14.(%l,%c%V%) %P"