max397574 / startup.nvim

A highly configurable neovim startup screen
GNU General Public License v2.0
443 stars 35 forks source link

Tab bar shown when using with Goyo.vim #28

Open j-steinbach opened 2 years ago

j-steinbach commented 2 years ago

Describe the bug

When using startup.nvim with Goyo.vim it shows a weird tab bar.

Checklist

To Reproduce Steps to reproduce the behavior:

  1. Install both startup.nvim and goyo.vim
  2. Start vim
  3. Create a new empty file from within the start page (:e)
  4. Turn on Goyo: :Goyo
  5. Notice distracting tab bar

Expected behavior

Full distraction free writing without tab bar after turning on Goyo

Note: I have no idea if this is a startup.nvim or goyo.vim issue. Also I am a Vim newb.

Screenshots

(Tested in both terminal nvim and with Neovide)

New file, before turning on Goyo.

No Goyo

After turning on Goyo.

Goyo

Additional Info Config

Basically the README config.


mind3 = {
"⠀⠀⠀⣀⡀⠀⣼⣷⣦⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
"⠀⠀⠐⠿⣿⣾⣿⣿⣄⣀⣶⡄⠀⢀⣀⠀⠀⣾⡗⠀⠀⡀⠀⠀⠀⠀⠀⠀⠀⠀",
"⠀⠀⣀⣴⣿⣿⣿⣿⣿⣿⠟⠋⠀⣼⣿⣿⣿⣿⣷⣾⠿⣷⣿⣦⠀⠀⠀⠀⠀⠀",
"⠀⠀⠙⢿⠋⠹⣿⣿⢿⣧⡄⠀⠀⠈⠉⢻⣿⣿⣿⣇⠿⠶⣿⣿⣧⠀⠀⠀⠀⠀",
"⠀⠀⠀⠀⠀⢾⣿⠇⠀⠛⠁⠀⠀⢺⣷⣿⣿⣿⣿⣿⣿⣗⣿⣿⣿⣇⠀⠀⠀⠀",
"⠀⠀⠀⠀⠀⢀⡀⠀⠐⣿⣇⣀⣠⡄⣶⣿⢺⣯⢶⣶⡏⣼⣿⣿⣿⣿⠀⠀⠀⠀",
"⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⢟⣛⣸⣿⣷⣶⣿⣿⡸⡻⣿⣿⣿⣏⠀⠀⠀⠀",
"⠀⠀⠀⠀⠀⢀⣀⣿⣿⣿⣿⣿⡸⠿⣿⣿⣿⣿⣿⣿⢿⢟⣼⣿⣿⣿⣆⠀⠀⠀",
"⠀⠀⠀⠀⠀⢸⡿⠿⠿⣿⡿⠿⣿⡟⣼⣿⢫⣭⢻⣿⡜⣿⣿⣿⣿⣿⣿⣧⠀⠀",
"⠀⠀⠀⠀⠀⠀⢺⣿⣕⠿⢇⣿⣶⣦⣭⣛⣹⣿⣜⣯⣵⣿⣿⣿⣿⣿⡟⠉⠀⠀",
"⠀⠀⠀⠀⠀⠀⠀⠹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡗⠀⠀⠀",
"⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠃⠀⠀⠀",
"⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀",
"⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀",
"⠀⠀⠀⠀⠀⠀⠀⢀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
"⠀⠀⠀⠀⠀⠀⠀⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀",
}

local s1 = {
    -- "text" -> text that will be displayed
        -- "mapping" -> create mappings for commands that can be used
        -- use mappings.execute_command on the commands to execute
        -- "oldfiles" -> display oldfiles (can be opened with mappings.open_file/open_file_split)
        type = "text", -- can be mappings or oldfiles
        oldfiles_directory = false, -- if the oldfiles of the current directory should be displayed
        align = "center", -- "center", "left" or "right"
        fold_section = false, -- whether to fold or not
        title = "title", -- title for the folded section
        -- if < 0 fraction of screen width
        -- if > 0 numbers of column
        margin = 5, -- the margin for left or right alignment
        -- type of content depends on `type`
        -- "text" -> a table with string or a function that requires a function that returns a table of strings
        -- "mapping" -> a table with tables in the format:
        -- {
            --   {<displayed_command_name>, <command>, <mapping>}
            --   {<displayed_command_name>, <command>, <mapping>}
            -- }
    -- e.g. {" Find File", "Telescope find_files", "<leader>ff" }
    -- "oldfiles" -> ""
        content = mind3,
        highlight = "String", -- highlight group in which the section text should be highlighted
        default_color = "#FF0000", -- a hex color that gets used if you don't specify `highlight`
        oldfiles_amount = 5, -- the amount of oldfiles to be displayed
}

local settings = {
    section_1 = s1,
    --section_2 = <section> -- as much sections as you like
    options = {
        mapping_keys = true, -- display mapping (e.g. <leader>ff)

        -- if < 0 fraction of screen width
        -- if > 0 numbers of column
        cursor_column = 0.5,

        --after = function() -- function that gets executed at the end
            --<lua commands>
        --end

        empty_lines_between_mappings = true, -- add an empty line between mapping/commands
        disable_statuslines = true, -- disable status-, buffer- and tablines
        paddings = {1,2}, -- amount of empty lines before each section (must be equal to amount of sections)
    },
    mappings = {
        execute_command = "<CR>",
        open_file = "o",
        open_file_split = "<c-o>",
        open_section = "<TAB>",
        open_help = "?",
    },
    colors = {
        background = "#1f2227",
        folded_section = "#56b6c2", -- the color of folded sections
        -- this can also be changed with the `StartupFoldedSection` highlight group
    },
    --parts = {"section_1", "section_2"} -- all sections in order
    parts = {"section_1" },
}

return settings

Neovim Version

↳ nvim --version
NVIM v0.6.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by nixbld

Features: +acl +iconv +tui