-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrepro.lua
More file actions
66 lines (64 loc) · 1.52 KB
/
repro.lua
File metadata and controls
66 lines (64 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
-- Run with `nvim -u repro.lua`
vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()
require("lazy.minit").repro({
---@module 'lazy'
---@type LazySpec
spec = {
{
"KevinNitroG/kubernetes-schema-snippets.nvim",
---@module 'kubernetes-schema-snippets'
---@type KubernetesSchemaSnippets.Opts
opts = {
filetypes = {
"yaml",
},
integrations = {
kubernetes = true,
kustomize = true,
argocd = true,
crds_catalog = true,
},
},
dependencies = "L3MON4D3/LuaSnip",
},
{
"L3MON4D3/LuaSnip",
keys = {
{
"<C-n>",
"<Plug>luasnip-next-choice",
silent = true,
mode = { "i", "s" },
},
{
"<C-p>",
"<Plug>luasnip-prev-choice",
silent = true,
mode = { "i", "s" },
},
{
"<M-e>",
function()
if require("luasnip").expand_or_jumpable() then
require("luasnip").expand_or_jump()
end
end,
silent = true,
mode = { "i", "s" },
noremap = true,
},
{
"<M-c>",
function()
if require("luasnip").choice_active() then
require("luasnip.extras.select_choice")()
end
end,
silent = true,
mode = { "i", "s" },
},
},
},
},
})