feat(nvim): add snippet for adding vim plugins
This commit is contained in:
parent
2924c37fb5
commit
50476e3295
23
lua/opdavies/snippets/ft/nix.lua
Normal file
23
lua/opdavies/snippets/ft/nix.lua
Normal 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
|
Reference in a new issue