Skip to content

uncommenting friendly-snippets does not work #680

Description

@sqrtnull

Describe the bug

just uncommenting rafamadriz/friendly-snippets does not work

To Reproduce

  1. uncomment rafamadriz/friendly-snippets in the dependencies for nvim-cmp

Desktop

  • OS: macos
  • Terminal: alacritty

Neovim Version

NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1703358377

Fix

add require("luasnip.loaders.from_vscode").lazy_load() when setting up cmp
(maybe also add rafamadriz/friendly-snippets to the dependencies for LuaSnip)

Activity

  1. tjdevries commented on Mar 5, 2024

    @tjdevries
    Member

    Yes, you still have to do the setup for friendly snippets -- could maybe be noted better in the documentation though. Do you want to send a PR w/ a description to add?

  2. sqrtnull commented on Mar 14, 2024

    @sqrtnull
    Author

    Since my PR was closed and I don't have any better ideas, here is an explanation on how to solve this for anyone with the same problem. Add the line
    require("luasnip.loaders.from_vscode").lazy_load()
    below the following code. (since the old kickstart had the same line here)

    kickstart.nvim/init.lua

    Lines 650 to 654 in b529bc3

    config = function()
    -- See `:help cmp`
    local cmp = require 'cmp'
    local luasnip = require 'luasnip'
    luasnip.config.setup {}

    also maybe just read https://github.com/rafamadriz/friendly-snippets

  3. tjdevries commented on Mar 15, 2024

    @tjdevries
    Member

    @VlaDexa had a really smart suggestion, which we just merged. Should make this easier!

  4. feakuru commented on May 23, 2024

    @feakuru

    I have a config forked from latest Kickstart (https://github.com/feakuru/nvim-config), and when I try to uncomment the friendly-snippets section there, the snippets for Python, HTML or JS don't seem to show up in completions. Am I missing some additional steps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions