NvChad / NvChad

Blazing fast Neovim config providing solid defaults and a beautiful UI, enhancing your neovim experience.

Home Page:https://nvchad.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feat: Explain how to disable friendly-snippets

kohloth opened this issue · comments

Is your feature request related to a problem? Please describe.
I wish to use about 10 custom-define snippets and nothing else in my editor. When there are many hundreds of snippets that I do not want, its inconvenient to find my custom snippets.

Describe the solution you'd like
I can see several posts where people are asking how to disable friendly-snippets, some with short replies, some links to PRs, some links to 404s.

Example: A pull request, which does not really tell how to do this
LunarVim/LunarVim#2546

There's also this reddit post (https://www.reddit.com/r/neovim/comments/114engw/nvchad_disabling_the_friendlysnippets_plugin/), but as I am a newb, I cannot understand what the answer means at all.

Theres also this issue:
#2176
But if I follow along and put

  {
     --"hrsh7th/nvim-cmp",
     "rafamadriz/friendly-snippets",
     enabled = false 
  }

into custom/plugins.lua (a new file) it has no effect. Theres also a reference to a sources var, but as I can't see this mentioned anywhere else in the docs I have no idea where this should be placed or what it really does.

Could someone tell me in simple terms how to disable all these unwanted snippets?

Describe alternatives you've considered
Not using snippets

Additional context
None

Screenshot
None

simplescreenrecorder-2024-03-31_18.33.50.mp4

i tried your code and it did disable the snippets

as for the other snippets, probably those are from your lsp and we cant do anything about it i think

Ah ok I see now.

The post at #2176 says to put the code in custom/plugins.lua. I can see in your vid that you're putting it not there but in ~/.config/nvim/lua/plugins/init.lua.

Might be a good idea to add this information to https://nvchad.com/docs/config/snippets for the other newcomers

In nvchad 2.5 the dir structure has changed, now your nvchad config is just like a general neovim config, you dont have to learn custom config syntax.

read https://nvchad.com/news/v2.5_release