Giter Club home page Giter Club logo

Comments (6)

echasnovski avatar echasnovski commented on August 11, 2024

Thanks for the issue!

Unfortunately, without more information I can not reproduce. It looks like there is some other file explorer plugin loaded, so it would be better to have at least somewhat minimal reproduction steps here.

from mini.nvim.

aboettger avatar aboettger commented on August 11, 2024

Same problem here. How can I provide you with more information?

from mini.nvim.

echasnovski avatar echasnovski commented on August 11, 2024

Same problem here. How can I provide you with more information?

Ideally - a minimal 'init.lua' that I can use with NVIM_APPIMAGE to reproduce.
At bare minimum - which relevant parts of LazyVim are used at startup. It seems like there should be at least some file explorer and 'mini.starter'.

from mini.nvim.

pejax avatar pejax commented on August 11, 2024

Same problem here. Steps to reproduce on macOS 14.5:

  1. Checkout/clone LazyVim starter https://github.com/LazyVim/starter to ~/.config/testnvim
  2. Export NVIM_APPNAME=testnvim
  3. Remove testvim/lua/plugins/example.lua
  4. Add testvim/lua/plugins/core.lua (code from below)
  5. Open nvim with new file ('nvim somefile.txt')
  6. Check the error message

Thank you for checking.

-- Core Plugins

-- "echasnovski/mini.starter (Mini Starter)

return {
  -- Use mini.starter instead of alpha
  { import = "lazyvim.plugins.extras.ui.mini-starter" },
  {
    "echasnovski/mini.starter",
    version = "*",
    event = "VimEnter",
    opts = function()
      local logo = table.concat({
        "██╗      █████╗ ███████╗██╗   ██╗██╗   ██╗██╗███╗   ███╗          Z",
        "██║     ██╔══██╗╚══███╔╝╚██╗ ██╔╝██║   ██║██║████╗ ████║      Z",
        "██║     ███████║  ███╔╝  ╚████╔╝ ██║   ██║██║██╔████╔██║   z",
        "██║     ██╔══██║ ███╔╝    ╚██╔╝  ╚██╗ ██╔╝██║██║╚██╔╝██║ z",
        "███████╗██║  ██║███████╗   ██║    ╚████╔╝ ██║██║ ╚═╝ ██║",
        "╚══════╝╚═╝  ╚═╝╚══════╝   ╚═╝     ╚═══╝  ╚═╝╚═╝     ╚═╝",
      }, "\n")
      local pad = string.rep(" ", 22)
      local new_section = function(name, action, section)
        return { name = name, action = action, section = pad .. section }
      end

      local starter = require("mini.starter")
      --stylua: ignore
      local config = {
        evaluate_single = true,
        header = logo,
        items = {
          new_section("aliases",      "e $HOME/.aliases",               "Dotfiles"),
          new_section("dialog",       "e $HOME/.dialog",                "Dotfiles"),
          new_section("environment",  "e $HOME/.environment",           "Dotfiles"),
          new_section("functions",    "e $HOME/.functions",             "Dotfiles"),
          new_section("motd",         "e $HOME/.motd",                  "Dotfiles"),
          new_section("projects",     "e $HOME/.projects",              "Dotfiles"),
          new_section("shellrc",      "e $HOME/.shellrc",               "Dotfiles"),
          new_section("tmux",         "e $HOME/.config/tmux/tmux.conf", "Dotfiles"),
          new_section("vimrc",        "e $HOME/.vimrc",                 "Dotfiles"),
          new_section("zshrc",        "e $HOME/.zshrc",                 "Dotfiles"),
          new_section("recent files", "Telescope oldfiles",             "Telescope"),
          new_section("grep text",    "Telescope live_grep",            "Telescope"),
          new_section("lazy",         "Lazy",                           "Config"),
          new_section("init.lua",     "e $MYVIMRC",                     "Config"),
          new_section("new file",     "ene | startinsert",              "Built-in"),
          new_section("quit",         "qa",                             "Built-in"),
        },
        content_hooks = {
          starter.gen_hook.adding_bullet(pad .. "░ ", false),
          starter.gen_hook.aligning("center", "center"),
        },
      }
      return config
    end,
  },
}

from mini.nvim.

echasnovski avatar echasnovski commented on August 11, 2024

Same problem here. Steps to reproduce on macOS 14.5:

Thanks, I can reproduce this. As I can not reproduce this with my own config and nvim somefile.txt, this looks like a conflict with some other plugin. I'll take a look.

from mini.nvim.

echasnovski avatar echasnovski commented on August 11, 2024

This is the issue with LazyVim, not 'mini.starter'. The message goes away if { import = "lazyvim.plugins.extras.ui.mini-starter" }, line is removed. There is this call in 'lazyvim.plugins.extras.ui.mini-starter' which does not guard against the appeared message because it is not an error.

I think the suggested solution is to remove { import = "lazyvim.plugins.extras.ui.mini-starter" }, from the config as you mostly have 'mini.starter' setup in your config.

Closing as not an issue with 'mini.starter'.

from mini.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.