Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Commit 4ef7dda

Browse files
committed
Add snippets.nvim health check
1 parent 5c1983f commit 4ef7dda

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

lua/completion/health.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,14 @@ local checkSnippetSource = function()
3636
else
3737
health_error("vim-vsnip is not available! Check if you install vim-vsnip correctly.")
3838
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 install snippets.nvim correctly.")
44+
end
3945
else
40-
health_error("You're snippet source is not available! possible value are: UltiSnips, Neosnippet, vim-vsnip")
46+
health_error("You're snippet source is not available! possible values are: UltiSnips, Neosnippet, vim-vsnip, snippets.nvim")
4147
end
4248
end
4349

0 commit comments

Comments
 (0)