@@ -22,22 +22,28 @@ local checkSnippetSource = function()
2222 if string.match (api .nvim_get_option (" rtp" ), " .*ultisnips.*" ) then
2323 health_ok (" You are using UltiSnips as your snippet source" )
2424 else
25- health_error (" UltiSnips is not available! Check if you install Ultisnips correctly." )
25+ health_error (" UltiSnips is not available! Check if you installed Ultisnips correctly." )
2626 end
2727 elseif snippet_source == ' Neosnippet' then
2828 if string.match (api .nvim_get_option (" rtp" ), " .*neosnippet.vim.*" ) then
2929 health_ok (" You are using Neosnippet as your snippet source" )
3030 else
31- health_error (" Neosnippet is not available! Check if you install Neosnippet correctly." )
31+ health_error (" Neosnippet is not available! Check if you installed Neosnippet correctly." )
3232 end
3333 elseif snippet_source == ' vim-vsnip' then
3434 if string.match (api .nvim_get_option (" rtp" ), " .*vsnip.*" ) then
3535 health_ok (" You are using vim-vsnip as your snippet source" )
3636 else
37- health_error (" vim-vsnip is not available! Check if you install vim-vsnip correctly." )
37+ health_error (" vim-vsnip is not available! Check if you installed vim-vsnip correctly." )
38+ end
39+ elseif snippet_source == ' snippets.nvim' then
40+ if string.match (api .nvim_get_option (" rtp" ), " .*snippets.nvim.*" ) then
41+ health_ok (" You are using snippets.nvim as your snippet source" )
42+ else
43+ health_error (" snippets.nvim is not available! Check if you installed snippets.nvim correctly." )
3844 end
3945 else
40- health_error (" You're snippet source is not available! possible value are: UltiSnips, Neosnippet, vim-vsnip" )
46+ health_error (" Your snippet source is not available! Possible values are: UltiSnips, Neosnippet, vim-vsnip, snippets.nvim " )
4147 end
4248end
4349
0 commit comments