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

Unable to open using :NeoAI command #43

Open
rakaar opened this issue May 25, 2023 · 2 comments
Open

Unable to open using :NeoAI command #43

rakaar opened this issue May 25, 2023 · 2 comments

Comments

@rakaar
Copy link

rakaar commented May 25, 2023

Gives the following error

Error executing Lua callback: ...ka/.local/share/nvim/plugged/neoai.nvim/lua/neoai/ui.lua:79: attempt to index field 'u
i' (a nil value)
stack traceback:
        ...ka/.local/share/nvim/plugged/neoai.nvim/lua/neoai/ui.lua:79: in function 'create_ui'
        ...e/rka/.local/share/nvim/plugged/neoai.nvim/lua/neoai.lua:49: in function 'toggle'
        ...e/rka/.local/share/nvim/plugged/neoai.nvim/lua/neoai.lua:78: in function 'smart_toggle'
        ...ka/.local/share/nvim/plugged/neoai.nvim/plugin/neoai.lua:4: in function <...ka/.local/share/nvim/plugged/neo
ai.nvim/plugin/neoai.lua:3>
@jamilraichouni
Copy link

jamilraichouni commented May 28, 2023

Nearly the same here for :NeoAI, :NeoAIToggle:

image

@Lakshamana
Copy link

Perhaps you have to call

require("neoai").setup()

on your nvim lua config file, or

lua << EOF
require("neoai").setup()
EOF

It should just work fine

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

3 participants