nvim: don't show filename in firenvim

This commit is contained in:
tastytea 2022-08-30 18:32:38 +02:00
parent 996b13e954
commit 48f93ed887
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -84,13 +84,15 @@ require('lualine').setup({
{ 'require("my.functions").lsp_status()', padding = 0 },
{ 'diagnostics' }
},
lualine_c = { { 'filename', path = 1 }, { function()
local curfun = vim.b.lsp_current_function
if curfun and curfun ~= '' then
return '(' .. curfun .. ')'
end
return ''
end, padding = 0, color = 'StatusLineNC' } },
lualine_c = { { 'filename', path = 1,
cond = function() return vim.g.started_by_firenvim == nil end },
{ function()
local curfun = vim.b.lsp_current_function
if curfun and curfun ~= '' then
return '(' .. curfun .. ')'
end
return ''
end, padding = 0, color = 'StatusLineNC' } },
lualine_x = { { 'filetype' } },
lualine_y = { { 'progress' } },
lualine_z = { { 'location' }, { '"🍄"', padding = 0 }