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

Config cannot be applied on neovim 0.9 or instructions are unclear #32

Closed
AkechiShiro opened this issue Apr 15, 2024 · 4 comments
Closed

Comments

@AkechiShiro
Copy link

Hello,

the configuration examples given all fails to be applied in init.vim as their syntax looks like they are lua pieces of codes and not vimscript syntax.

Is there any instructions that are missing from the readme to actually make this config work ?

@AkechiShiro
Copy link
Author

Yep found out it was indeed lua configuration.

I've imported the configuration successfully but the require seems to fail :

Error detected while processing /home/licht/.config/nvim/init.vim:                                                                           
line  131:                                                                                                                                   
E5108: Error executing lua [string ":lua"]:1: module 'osc52' not found:                                                                      
        no field package.preload['osc52']                                                                                                    
        no file '/nix/store/k85k151qrrl98gfbj5z00h36a5kj4fwy-luajit-2.1.1693350652-env/share/lua/5.1/osc52.lua'                              
        no file '/nix/store/k85k151qrrl98gfbj5z00h36a5kj4fwy-luajit-2.1.1693350652-env/share/lua/5.1/osc52/init.lua'                         
        no file '/nix/store/k85k151qrrl98gfbj5z00h36a5kj4fwy-luajit-2.1.1693350652-env/lib/lua/5.1/osc52.so'                                 
stack traceback:                                                                                                                             
        [C]: in function 'require'                                                                                                           
        [string ":lua"]:1: in main chunk  

Not sure why it is looking up the lua script at this exact path, since the plugin is managed by Plug and inside $HOME/.local/share/nvim

@AkechiShiro
Copy link
Author

I suggest adding to the readme the following doc : https://neovim.io/doc/user/lua-guide.html

As well as clearly stating it is lua configuration and not vimscript as this is ambiguous right now and seems to be left as an exercise for the reader.

@AkechiShiro
Copy link
Author

Will reopen until I can fix it or it gets fixed.

@ojroques
Copy link
Owner

Hello,

I won't add Vimscript in the README as I'm assuming that users of Neovim and this plugin are familiar with Lua.

But you might be interested in https://github.com/ojroques/vim-oscyank, which does the exact same job as nvim-osc52 but for Vim. You'll find Vimscript instructions there as well.

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