Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help: could not install Tabby properly #10

Closed
VKondakoff opened this issue Oct 6, 2021 · 7 comments
Closed

Help: could not install Tabby properly #10

VKondakoff opened this issue Oct 6, 2021 · 7 comments

Comments

@VKondakoff
Copy link
Contributor

Hi!

I'm trying to install Tabby using the instructions (macOS, iTerm2, Neovim nightly, Packer).
Here is what I see after running :PackerInstall and :PackerCompile:
Снимок экрана 2021-10-06 в 13 11 07

And here is what I see after restarting Neovim:
Снимок экрана 2021-10-06 в 13 11 25

What am I doing wrong? (Quite a newbie here.)
Thanks!

@nanozuki
Copy link
Owner

nanozuki commented Oct 6, 2021

In the first image, the nerd font does not display correctly. You need a nerd font patched font: https://github.com/ryanoasis/nerd-fonts

In the second image, something may be wrong. Can you type command :messages and see there is some error message?

@VKondakoff
Copy link
Contributor Author

VKondakoff commented Oct 6, 2021

Hi, nanozuki, thanks for helping me!

Second image: this just happens after restarting Neovim - for some reason Tabby is not shown after restart. No error messages are shown. Here is a short video:
https://www.dropbox.com/s/be9l11qxy9eq81k/%D0%97%D0%B0%D0%BF%D0%B8%D1%81%D1%8C%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202021-10-06%20%D0%B2%2015.29.21.mov?dl=0

require('packer').startup(function()
  use 'wbthomason/packer.nvim' -- Packer can manage itself
  use {
    "nanozuki/tabby.nvim",
    requires = "kyazdani42/nvim-web-devicons",
    config = function() require("tabby").setup() end,
  }
end)

Is this code enough to show Tabby or I should explicitly call it somewhere else?

@EdenEast
Copy link

EdenEast commented Oct 6, 2021

Are you able to reproduce the issue with a minimal_init.lua file? Try running the minimal setup below and see if you are still having issues. Also note in the file I am making sure that a colorscheme is applied before tabby's setup function.

-- Open with `nvim --clean -u minimal_init.lua`
local install_path = "/tmp/nvim/site/pack/packer/start/packer.nvim"
local compile_path = install_path .. "/plugin/packer_compiled.lua"
vim.opt.packpath = "/tmp/nvim/site"

local function load_plugins()
  local packer = require("packer")
  local use = packer.use
  packer.reset()
  packer.init({ compile_path = compile_path, package_root = "/tmp/nvim/site/pack" })

  use("wbthomason/packer.nvim")
  use({
    "edeneast/nightfox.nvim", -- Adding some sort of colorscheme
    config = function()
      vim.cmd("colorscheme nightfox")
    end,
  })
  use({
    "nanozuki/tabby.nvim",
    requires = "kyazdani42/nvim-web-devicons",
    after = "nightfox.nvim",
    config = function()
      require("tabby").setup()
    end,
  })
  packer.sync()
end

_G.load_config = function() end

if vim.fn.isdirectory(install_path) == 0 then
  vim.fn.system({ "git", "clone", "--depth=1", "https://github.com/wbthomason/packer.nvim", install_path })
end
load_plugins()
vim.cmd([[autocmd User PackerComplete ++once echo "Ready!" | lua load_config()]])

@VKondakoff
Copy link
Contributor Author

Hey, that's it! @EdenEast, thanks for pointing me.
lightline.vim is causing the issue.
Tabby shows up if I comment the following code:

use {
   'itchyny/lightline.vim',
   config = function()
     vim.g.lightline = { --Set statusline
     colorscheme = 'nord',
   }
 end,
} -- Fancier statusline

@nanozuki, is Tabby not compatible with statusline plugins?

@EdenEast
Copy link

EdenEast commented Oct 6, 2021

I know it works with statuslines like feline.nvim and lualine (current maintained fork). Looking at lightline it looks like it does the tabline as well. They are conflicting.

@nanozuki
Copy link
Owner

nanozuki commented Oct 7, 2021

In nvim, the tabline is a global option. So you can only use set one tabline, and two tabline plugins will conflict. I read the lightline.vim, it seems that it can't only close the tabline, so it can't use with tabby.nvim. You can ask the author to provide an option to only provide a statusline.

@nanozuki nanozuki closed this as completed Oct 9, 2021
@Hdoc1509
Copy link

Hdoc1509 commented Jun 28, 2023

Hi @VKondakoff , I know this is an old issue, but here I go,

You can disable the tabline feature of lightline.vim with the following code:

vim.g.lighline = {
  ...other_options,
  enable = { tabline = 0 },
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants