luckasRanarison / nvim-devdocs

Neovim DevDocs integration
MIT License
265 stars 19 forks source link

Previewer not showing up in Open commands #5

Closed albertocerrone closed 1 year ago

albertocerrone commented 1 year ago

Hello hello!

I have a little issue with the previewer that is not showing up from telescope when using the Open commands: Screenshot 2023-08-11 at 11 50 58

I have a very basic config, so how do I add the previewer?

  {
    "luckasRanarison/nvim-devdocs",
    cmd = { "DevdocsFetch", "DevdocsInstall", "DevdocsUpdate", "DevdocsUpdateAll", "DevdocsUninstall", "DevdocsOpen",
      "DevdocsOpenFloat", },
    opts = {
      ensure_installed = {
        "python-3.11",
        "django-4.2",
        "bootstrap-5"
      },
    },
    dependencies = {
      "nvim-lua/plenary.nvim",
      "nvim-telescope/telescope.nvim",
      "nvim-treesitter/nvim-treesitter",
    },
  },

Thank you so much 🔥 P.S. well done with your first nvim plugin! Very very good job

luckasRanarison commented 1 year ago

Thanks for giving my plugin a try! Sorry I should mention it in the README, the previewer only work when opening a specific documentation like :DevdocsOpen javascript. I haven't implement it yet because I'm still learning about async events, but that should be possible. All read/write operations are all synchronous for the moment and processing the documentation take some moment to complete and will block the input so I omitted it for now. I'll add that soon :)

albertocerrone commented 1 year ago

I can add it to the docs if is fine for you 🤗

luckasRanarison commented 1 year ago

Contributions are welcome :) , I'm also bad at explaining how things work...

albertocerrone commented 1 year ago

Don't worry, you explained everything correctly 🤗

luckasRanarison commented 1 year ago

I've added this in #21, it doesn't support jumping yet but I'll make a separate issue for it.