v1nh1shungry / cppman.nvim

cppman ❤️ neovim. View cppreference manuals right inside your neovim!
11 stars 0 forks source link

Fails the setup process at the stable (v0.9.2) version of neovim #3

Open de-abreu opened 1 year ago

de-abreu commented 1 year ago

Morning,

I've just installed your plugin and I'm running into this error where it seems that calling "vim.fs.joinpath" returns a nil value.

image

Here's the output of :lua =require("vim.fs"):

{                                                                                                    
  basename = <function 1>,                                                                           
  dir = <function 2>,                                                                                
  dirname = <function 3>,                                                                            
  find = <function 4>,                                                                               
  normalize = <function 5>,                                                                          
  parents = <function 6>                                                                             
}  

As you can see, no joinpath function is available. Maybe add some installation instructions for users to get an older version of your plugin compatible with the current version of neovim?

v1nh1shungry commented 1 year ago

Thank you for the report!

I'm sorry for not realizing that vim.fn.joinpath is provided in a nightly build. The function of vim.fn.joinpath may be easy to implement by hand. I have been planning to add some compatibility check to help support old version neovim. The point is that I don't find a quick way to check which version the feature is provided. This is why the compatibility check is on my TODO-list for a long time.

Unfortunately I'm busy looking for a job and preparing for interviews recently and not available until I receive an offer. Before that any contributions are welcome.