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

[Bug] LunarNvim integration issues #12

Closed
pidgeon777 opened this issue Jun 10, 2021 · 7 comments
Closed

[Bug] LunarNvim integration issues #12

pidgeon777 opened this issue Jun 10, 2021 · 7 comments

Comments

@pidgeon777
Copy link

Hi, first of all, congratulations on this great plugin.

I'm encountering some difficulties integrating it in the LunarVim config package.

lua\plugins.lua:

return require("packer").startup(function(use)
    ....
    use {'ray-x/navigator.lua', requires = {'ray-x/guihua.lua', run = 'cd lua/fzy && make'}, opt = true}
    ....
    require_plugin("navigator.lua")
    ....
end)

lua\init.lua:

....
require('my-navigator-lua')
....

lua\my-navigator-lua\init.lua:

require'navigator'.setup()

The fact is that it seems to install correctly (no errors reported), but it reports an error when starting Neovim:

Errore/i eseguendo C:\Work\MEGA\Portable\Neovim\config\init.vim:
riga  511:
E5108: Error executing lua ...er\opt\navigator.lua\lua\navigator\lspclient\clients.lua:49: table index is nil

Help with running it in LunarVim would be greatly appreciated!

@pidgeon777
Copy link
Author

Also referenced here:

LunarVim/LunarVim#482

@ray-x
Copy link
Owner

ray-x commented Jun 10, 2021

It seems navigator failed to handle pathname in windows. (I am not using windows ATM)
Could you help me check the following output in your neovim cmd

: lua print(vim.fn.expand("$HOME"))

My output is /User/rayx

And this:
: lua print(vim.fn.expand("$HOME") .. "/.config/nvim")

My output is /User/rayx/.config/nvim

And this:
lua print(vim.fn.isdirectory(vim.fn.expand("$HOME") .. "/.config/nvim"))

My output is 1

Also this
: lua print(vim.fn.stdpath('config'))

I doubt that windows may output sth total different

Also add some code may help prevent error throw. Please update the plugin as well.

@pidgeon777
Copy link
Author

Thanks for the prompt reply:

lua print(vim.fn.expand("$HOME")):

C:\Users\Myusername

My output is /User/rayx

lua print(vim.fn.expand("$HOME") .. "/.config/nvim"):

C:\Users\Myusername/.config/nvim

My output is /User/rayx/.config/nvim

lua print(vim.fn.isdirectory(vim.fn.expand("$HOME") .. "/.config/nvim"))

0

My output is 1

lua print(vim.fn.stdpath('config'))

C:\Users\Myusername\AppData\Local\nvim

Also add some code may help prevent error throw. Please update the plugin as well.

I didn't understand what actions I should take for doing as you suggested.

@ray-x
Copy link
Owner

ray-x commented Jun 10, 2021

run:

: PackerUpdate

That will allow you update all plugins

@pidgeon777
Copy link
Author

Now it seems to have properly loaded. Great work.

I'll test it right now.

@ray-x
Copy link
Owner

ray-x commented Jun 15, 2021

Hi, @pidgeon777
Can you confirm the issue been solved in the latest version?

@ray-x ray-x closed this as completed Jun 16, 2021
@pidgeon777
Copy link
Author

Thank you @ray-x , this issue has been solved, I had a chance to do more testing and I found some other issues which I just reported.

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

2 participants