feat(nvim): add snippet for adding vim plugins

This commit is contained in:
Oliver Davies 2023-10-12 09:44:00 +01:00
parent 2924c37fb5
commit 50476e3295

View file

@ -0,0 +1,23 @@
local fmta = require("luasnip.extras.fmt").fmta
local ls = require "luasnip"
local c = ls.choice_node
local i = ls.insert_node
local t = ls.text_node
local M = {
vimplugin = fmta(
[[
{
plugin = <>.<>;
type = "lua";
config = ''
<>
'';
}<>
]],
{ c(1, { t "vimPlugin", t "customVim" }), i(2), i(3), i(0) }
),
}
return M