Giter Club home page Giter Club logo

Comments (7)

folliehiyuki avatar folliehiyuki commented on July 17, 2024 1

Thanks @famiu. I just tried it out. Yes the commit does fix the issue.

from feline.nvim.

folliehiyuki avatar folliehiyuki commented on July 17, 2024

I didn't notice that the right buffer in the screenshot already got the buffer content updated :)
So for the screenshot:

  • The right window buffer use the config example above
  • The left one is just provider = 'file_info', ...

from feline.nvim.

xeluxee avatar xeluxee commented on July 17, 2024

Try #108 and please tell me if it fixes your problem

from feline.nvim.

folliehiyuki avatar folliehiyuki commented on July 17, 2024

@xeluxee I tried your PR, sadly doesn't seem to work. I can still reproduce with the step above (with the minimal config below).

minimal_init.lua

-- Minimal init file to run Feline with the most basic functionality
-- Run from Feline top-level directory using:
-- nvim --noplugin -u minimal_init.lua

local function load_plugins()
    local packer = require('packer')
    local use = packer.use

    packer.reset()
    packer.init {
        package_root = '/tmp/nvim/site/pack',
        git = {
            clone_timeout = -1
        }
    }

    use 'wbthomason/packer.nvim'
    use {
        'xeluxee/feline.nvim',
        branch = 'fix-provider-opts',

        -- If you wish to use the develop branch, uncomment the next line
        -- branch = 'develop',

        -- If you wish to use a specific version of Feline, uncomment the next line
        -- tag = 'v0.1', -- replace 'v0.1' with your version number

        requires = {
            {
                'lewis6991/gitsigns.nvim',
                requires = { 'nvim-lua/plenary.nvim' },
                config = function()
                    require('gitsigns').setup()
                end
            },
            'kyazdani42/nvim-web-devicons'
        }
    }

    packer.sync()
end

_G.load_config = function()
    vim.opt.termguicolors = true

    -- Replace this part of the config with whatever Feline configuration you're using
    require('feline').setup {
        components = {
            active = {
                {
                    {
                        provider = {
                            name = 'file_info',
                            opts = {
                                -- Set anything here
                                type = 'unique'
                            }
                        },
                        -- Don't set icon
                        hl = { fg = '#61afef', style = 'bold'},
                        right_sep = ' '
                    }
                },
                {}, {}
            },
            inactive = {}
        }
    }
end

local install_path = '/tmp/nvim/site/pack/packer/start/packer.nvim'

vim.opt.packpath = {'/tmp/nvim/site'}

if vim.fn.isdirectory(install_path) == 0 then
    vim.fn.system({'git', 'clone', 'https://github.com/wbthomason/packer.nvim', install_path})
end

load_plugins()
vim.api.nvim_command('autocmd User PackerComplete ++once lua load_config()')

from feline.nvim.

famiu avatar famiu commented on July 17, 2024

Does c9d5ef7 fix your issues?

from feline.nvim.

PetarMetodiev avatar PetarMetodiev commented on July 17, 2024

If this is helpful, I also noticed this behaviour yesterday, but it seems to have been fixed now.

from feline.nvim.

famiu avatar famiu commented on July 17, 2024

I'm closing this issue since I've checked and there's no reason for the issue to still persist. Feel free to reopen if the mentioned commit doesn't fix your issues though

from feline.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.