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

Error no file found although it should be installed #33

Open
jfmoulin opened this issue Sep 12, 2022 · 2 comments
Open

Error no file found although it should be installed #33

jfmoulin opened this issue Sep 12, 2022 · 2 comments

Comments

@jfmoulin
Copy link

Although my init.lua (attached as txt) contains the require('cmp_nvim_lsp') I get the following error

no file './cmp_nvim_lsp.lua' no file '/home/runner/work/neovim/neovim/.deps/usr/share/luajit-2.1.0-beta3/cmp_nvim_lsp.lua' no file '/usr/local/share/lua/5.1/cmp_nvim_lsp.lua' no file '/usr/local/share/lua/5.1/cmp_nvim_lsp/init.lua' no file '/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/cmp_nvim_lsp.lua' no file '/home/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/cmp_nvim_lsp/init.lua' no file './cmp_nvim_lsp.so' no file '/usr/local/lib/lua/5.1/cmp_nvim_lsp.so' no file '/home/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/cmp_nvim_lsp.so' no file '/usr/local/lib/lua/5.1/loadall.so'
init.lua.txt

@Shougo
Copy link

Shougo commented Sep 13, 2022

cmp_nvim_lsp seems not installed.
You should check it is installed properly.

@jfmoulin
Copy link
Author

Thanks, I had indeed understood that it is not installed.

I actually (stupidly) expected the line

capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities)

to install the module.

After adding the obvious require("hrsh7th/cmp-nvim-lsp") above this line, the plugin is now installed.

Maybe extending the readme with an example of the most basic install and config would help noobs/impatient people like me...

Thanks for the nice work.

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