Giter VIP home page Giter VIP logo

nvim-headband's Introduction

"Every part of a journey is impermanent, and once you realize the impermanence of every moment within a journey, you want to accept it and almost embrace it, no matter how difficult it really is."

~ Charlie Abrams, "State of Mind"

Self-taught developer pursuing constant self improvement. I mainly use C++, but I fiddle with lots of other languages.

Big fan of functional programming, Nix(OS) and all things terminal ;d

Nice reads

Grug brain dev on complexity, complexity very, very bad
Flakes aren't real, when and how to use and not use flakes
When should you choose C++ as your starting language?, C++ is a poor choice for a beginner
A Mathematician's Lament, how schools ruined mathematics
Learn In Public, how to learn and provide value for public
Wizard Zines, collection of funny comics and "zines" on a lot of technical topics

nvim-headband's People

Contributors

dich0tomy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

nvim-headband's Issues

location_section's empty_symbol is bugged

When setting the empty_symbol to '' at first it appears as in the default config, but after going to some non-empty location and going back to available but empty location it disappears.

Buffer filters don't work

After introducing buffer combinators, the default buffer filter doesn't work. Tested on NeogitCommitMessage ft and NeogitStatus bt.

Setup function throws an error

Error

Error detected while processing /home/olix3001/.local/share/nvim/site/pack/packer/start/nvim-headband/plugin/nvim-headband.lua:
E5113: Error while calling lua chunk: ...ck/packer/start/nvim-headband/lua/nvim-headband/init.lua:14: attempt to call field 'issue_headband_error' (a nil value)
stack traceback:
        ...ck/packer/start/nvim-headband/lua/nvim-headband/init.lua:14: in function 'issue_lack_of_winbar_notification'
        ...ck/packer/start/nvim-headband/lua/nvim-headband/init.lua:23: in function 'setup'
        ...pack/packer/start/nvim-headband/plugin/nvim-headband.lua:1: in main chunk

How to reproduce?

Open neovim on fedora linux with plugin installed.

Plugin config (nvchad)

    ["B4mbus/nvim-headband"] = {
      config = function()
        require "nvim-headband".setup { }
      end,
      requires = {
        { 'SmiteshP/nvim-navic', opt = true },
        { 'kyazdani42/nvim-web-devicons', opt = true }
      }
    },

Thank you for the plugin โค๏ธ

Hi @B4mbus,

Sorry to hear that this plugin will no longer be maintained and even deleted from Github. :(
Thank you for the gentle notice!

Can you please share more about this decision? Are you using something different these days to serve the same purpose?

Either way, just wanted to say thank you!

-- Dorian

"not enough room" error

I keep getting this message for some reason.. I couldn't figure out how to trigger it, but this is my config

  use {
    'B4mbus/nvim-headband',
    config = function()
      require('nvim-headband').setup {
        location_section = {
          position = 'right',
        },
      }
    end,
    after = 'nvim-web-devicons',
    requires = {
      -- required for for the navic section to work
      { 'SmiteshP/nvim-navic' },
      -- required for for devicons and default location_section.separator
      -- highlight group
      { 'kyazdani42/nvim-web-devicons' },
    },
  }

image

Just posting here in case others have encountered this same issue. It started very recently and may have something to do with either https://github.com/j-hui/fidget.nvim or https://github.com/vigoux/notifier.nvim

I also get this whenever I run :PackerSync, but not sure if that's related
image

NeoVim version info
image

Winbar disappears when going properbuffer -> badbuffer -> properbuffer

The winbar must be exactly '' for it to be disabled, that means the winbar cannot have any state in it (e.g. %{%v.lua:Something()%}) to compute it's value if it has to be disabled.

The possible option to make it work properly is to register an autocommand that filters the right and wrong buffers and set's the winbar string accordingly.

The setup configuration is not respected

When using the setup function it seems like the plugin\nvim-headband.lua setup takes place first, or overrides it somehow.

return {
  'F:\\prv\\dev\\projects\\nvim-headband',
  config = function ()
    vim.api.nvim_set_hl(0, 'NvimHeadbandSeparator', { link = 'NavicSeparator' })

    require 'nvim-headband'.setup {
      separator_text = require 'nvim-headband.symbols'.nice_arrow,
      location_section = {
        empty_symbol = ''
      }
    }
  end
}

(The separator is shown as ::, the empty symbol is shown at first, but after showing the location and then going back to a place where it's available but empty it's gone like expected)

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.