garymjr / nvim-snippets

Snippet support using native neovim snippets
MIT License
241 stars 15 forks source link

[Docs Request]: `nvim-cmp` isn't listed as dependency in the README #62

Open Drew-Daniels opened 1 month ago

Drew-Daniels commented 1 month ago

Thanks for making this plugin! Seems really useful.

I ran into an issue launching neovim after installing nvim-snippets with lazy.nvim, because it looks like there is a dependency on nvim-cmp here, causing an issue if a user doesn't already have it installed.

image

Might be good to list nvim-cmp as a dependency if this is needed, somewhere in the README

return require("lazy").setup({
  {
    "garymjr/nvim-snippets",
    dependencies = { "hrsh7th/nvim-cmp"}
  }
})
pedrog14 commented 3 weeks ago

Try setting "create_cmp_source" to false in the plugin opts table, i think it should fix your problem.