Skip to content

Commit

Permalink
feat(snippet): add nvim-snippets plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Feb 10, 2024
1 parent 780713e commit 2099f94
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/astrocommunity/snippet/nvim-snippets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# nvim-snippets

Snippet support using native neovim snippets

**Repository:** <https://github.com/garymjr/nvim-snippets>
17 changes: 17 additions & 0 deletions lua/astrocommunity/snippet/nvim-snippets/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
return {
{ "L3MON4D3/LuaSnip", enabled = false },
{
"hrsh7th/nvim-cmp",
dependencies = {
{
"garymjr/nvim-snippets",
dependencies = { "rafamadriz/friendly-snippets" },
opts = { friendly_snippets = true },
},
},
opts = function(_, opts)
if not opts.sources then opts.sources = {} end
table.insert(opts.sources, { name = "snippets", priority = 750 })
end,
},
}

0 comments on commit 2099f94

Please sign in to comment.