Skip to content

arrow.nvim crashes nvim on Android with Termux #111

Description

@UtkarshVerma

When I launch nvim with the following config for arrow.nvim:

---@type LazyPluginSpec[]
return {
  {
    "otavioschwanck/arrow.nvim",
    keys = {
      { "ga", desc = "Arrow" },
    },
    ---@type plugins.arrow.config
    opts = {
      leader_key = ";",
      window = {
        border = "none",
      },
      mappings = {
        prev_item = ";",
      },
    },
  },
}

my Neovim instance crashes with the following logs shown successively:

E5108: Error executing lua ...me/.local/share/nvim/lazy/arrow.nvim/lua/arrow/utils.lua:122: attempt to index local 'save_key' (a nil value)
stack traceback:
        ...me/.local/share/nvim/lazy/arrow.nvim/lua/arrow/utils.lua:122: in function 'get_buffer_path'
        ...ocal/share/nvim/lazy/arrow.nvim/lua/arrow/statusline.lua:19: in function 'is_on_arrow_file'
        ...ocal/share/nvim/lazy/arrow.nvim/lua/arrow/statusline.lua:36: in function 'text_for_statusline_with_icons'
        .../files/home/.config/nvim/lua/plugins/mini-statusline.lua:81: in function <.../files/home/.config/nvim/lua/plugins/mini-statusline.lua:71>
Failed to run `config` for arrow.nvim

...me/.local/share/nvim/lazy/arrow.nvim/lua/arrow/utils.lua:80: attempt to index local 'path' (a nil value)

# stacktrace:
  - /arrow.nvim/lua/arrow/utils.lua:80 _in_ **save_key**
  - /arrow.nvim/lua/arrow/persist.lua:32 _in_ **cache_file_path**
  - /arrow.nvim/lua/arrow/persist.lua:109 _in_ **load_cache_file**
  - /arrow.nvim/lua/arrow/init.lua:186 _in_ **setup**
  - ~/.config/nvim/lua/plugins/mini-statusline.lua:81

The same config works fine on my Linux machine, which leads me to believe that this could be an Android-specific quirk.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions