KadoBOT / nvim-spotify

For productivity addicts who enjoy coding while listening to Spotify, and cannot lose their focus switching to the app to control their music.
GNU General Public License v3.0
182 stars 5 forks source link

Cannot show currently playing song in lualine #24

Open navxio opened 2 years ago

navxio commented 2 years ago

My config is as follows:

                local status = require("nvim-spotify").status
                status:start()

                require("lualine").setup({
                    options = {
                        theme = bubbles_theme,
                        component_separators = "|",
                        section_separators = { left = "", right = "" },
                    },
                    sections = {
                        lualine_a = {
                            { "mode", separator = { left = "" }, right_padding = 2 },
                        },
                        lualine_b = { "filename", "branch" },
                        lualine_c = { "fileformat" },
                        lualine_x = { status.listen },
                        lualine_y = { "filetype", "progress" },
                        lualine_z = {
                            { "location", separator = { right = "" }, left_padding = 2 },
                        },
                    },
                    inactive_sections = {
                        lualine_a = { "filename" },
                        lualine_b = {},
                        lualine_c = {},
                        lualine_x = {},
                        lualine_y = {},
                        lualine_z = { "location" },
                    },
                    tabline = {},
                    extensions = {},
                })
            end,
        })