diff --git a/.config/nvim/lua/my/functions.lua b/.config/nvim/lua/my/functions.lua index 57cf9a7..4d4f296 100644 --- a/.config/nvim/lua/my/functions.lua +++ b/.config/nvim/lua/my/functions.lua @@ -130,10 +130,6 @@ function M.lsp_status() end end - local current_function = vim.b.lsp_current_function - if current_function and current_function ~= '' then - status = status .. '(' .. current_function .. ')' - end return status end diff --git a/.config/nvim/lua/my/tools.lua b/.config/nvim/lua/my/tools.lua index 33feed8..89b41e8 100644 --- a/.config/nvim/lua/my/tools.lua +++ b/.config/nvim/lua/my/tools.lua @@ -80,7 +80,13 @@ require('lualine').setup({ { 'require("my.functions").lsp_status()', padding = 0 }, { 'diagnostics' } }, - lualine_c = { { 'filename', path = 1 } }, + 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_x = { { 'filetype' } }, lualine_y = { { 'progress' } }, lualine_z = { { 'location' }, { '"🍄"', padding = 0 }