folke / edgy.nvim

Easily create and manage predefined window layouts, bringing a new edge to your workflow
Apache License 2.0
840 stars 17 forks source link

big: attempt to index field 'view' (a nil value) #28

Closed flowchartsman closed 1 year ago

flowchartsman commented 1 year ago

Did you check docs and existing issues?

Neovim version (nvim -v)

v0.9.1

Operating system/version

13.0.1 (22A400)

Describe the bug

Pursuant to attmpting to resolve #27, I added symbols-outline.nvim as a dependency, but, no dice. Now the error is:

vim/_editor.lua:0: nvim_exec2(): Vim(lua):E5108: Error executing lua ...e/nvim/lazy/symbols-outline.nvim/lua/symbols-outline.lua:307: attempt to index field 'view' (a nil value)
stack traceback:
    ...e/nvim/lazy/symbols-outline.nvim/lua/symbols-outline.lua:307: in function 'toggle_outline'
    [string ":lua"]:1: in main chunk
    [C]: in function 'nvim_exec2'
    vim/_editor.lua: in function 'cmd'
    .../andy/.local/share/nvim/lazy/edgy.nvim/lua/edgy/view.lua:128: in function <.../andy/.local/share/nvim/lazy/edgy.nvim/lua/edgy/view.lua:127>
    [C]: in function 'pcall'
    .../andy/.local/share/nvim/lazy/edgy.nvim/lua/edgy/util.lua:6: in function 'try'
    .../andy/.local/share/nvim/lazy/edgy.nvim/lua/edgy/view.lua:127: in function <.../andy/.local/share/nvim/lazy/edgy.nvim/lua/edgy/view.lua:122>

Also worth noting: I am unable to quit nvim with :q. It simply toggles the first edgy window. I have to :qa for it to work.

Steps To Reproduce

  1. Start from vanilla lazyvim installation
  2. Enable edgy in lazyvim, using the standard ui plugin
  3. create a ~/.config/nvim/lua/plugins/coding.lua file with the following contents:
    return {
    {"simrat39/symbols-outline.nvim"},
    }
  4. save everything and open some code.

Result: edgyerror

Expected Behavior

No error

Repro

As above.
flowchartsman commented 1 year ago

nvm, needed to call setup. Still getting used to the lazy manager's way of doing things.