Refresh generated neovim config
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
*luasnip.txt* For NVIM v0.8.0 Last change: 2024 May 24
|
||||
*luasnip.txt* For NVIM v0.8.0 Last change: 2024 June 07
|
||||
|
||||
==============================================================================
|
||||
Table of Contents *luasnip-table-of-contents*
|
||||
@ -241,7 +241,7 @@ Common opts:
|
||||
|
||||
- `node_ext_opts` and `merge_node_ext_opts`: Control `ext_opts` (most likely
|
||||
highlighting) of the node. Described in detail in |luasnip-ext_opts|
|
||||
- `key`: The node can be reffered to by this key. Useful for either |luasnip-key-indexer| or for finding the node at runtime (See
|
||||
- `key`: The node can be referred to by this key. Useful for either |luasnip-key-indexer| or for finding the node at runtime (See
|
||||
|luasnip-snippets-api|), for example inside a `dynamicNode`. The keys
|
||||
do not have to be unique across the entire lifetime of the snippet, but at any
|
||||
point in time, the snippet may contain each key only once. This means it is
|
||||
@ -759,7 +759,7 @@ ChoiceNodes allow choosing between multiple nodes.
|
||||
|
||||
- `jump_index`: `number`, since choiceNodes can be jumped to, they need a
|
||||
jump-index (Info in |luasnip-basics-jump-index|).
|
||||
- `choices`: `node[]|node`, the choices. The first will be initialliy active.
|
||||
- `choices`: `node[]|node`, the choices. The first will be initially active.
|
||||
A list of nodes will be turned into a `snippetNode`.
|
||||
- `node_opts`: `table`. `choiceNode` supports the keys common to all nodes
|
||||
described in |luasnip-node|, and one additional key:
|
||||
@ -897,7 +897,7 @@ All of these parameters except `indentstring` are exactly the same as in
|
||||
|
||||
- `indentstring`: `string`, will be used to indent the nodes inside this
|
||||
`snippetNode`.
|
||||
All occurences of `"$PARENT_INDENT"` are replaced with the actual indent of
|
||||
All occurrences of `"$PARENT_INDENT"` are replaced with the actual indent of
|
||||
the parent.
|
||||
|
||||
|
||||
@ -1277,7 +1277,7 @@ A shortcut for `functionNode`s that only do very basic string manipulation.
|
||||
- `lambda`: An object created by applying string-operations to `l._n`, objects
|
||||
representing the `n`th argnode.
|
||||
For example:
|
||||
- `l._1:gsub("a", "e")` replaces all occurences of "a" in the text of the
|
||||
- `l._1:gsub("a", "e")` replaces all occurrences of "a" in the text of the
|
||||
first argnode with "e", or
|
||||
- `l._1 .. l._2` concatenates text of the first and second argnode.
|
||||
If an argnode contains multiple lines of text, they are concatenated with
|
||||
@ -1351,8 +1351,8 @@ Examples:
|
||||
m({ 1, 2 }, l._1:match("^" .. l._2 .. "$"), l._1:gsub("a", "e"))
|
||||
})
|
||||
<
|
||||
This inserts the text of the node with jump-index 1, with all occurences of `a`
|
||||
replaced with `e`, if the second insertNode matches the first exactly.
|
||||
This inserts the text of the node with jump-index 1, with all occurrences of
|
||||
`a` replaced with `e`, if the second insertNode matches the first exactly.
|
||||
|
||||
|
||||
REPEAT *luasnip-extras-repeat*
|
||||
@ -1466,7 +1466,7 @@ any way, correspond to the jump-index of the nodes!
|
||||
|
||||
`fmt(format:string, nodes:table of nodes, opts:table|nil) -> table of nodes`
|
||||
|
||||
- `format`: a string. Occurences of `{<somekey>}` ( `{}` are customizable; more
|
||||
- `format`: a string. Occurrences of `{<somekey>}` ( `{}` are customizable; more
|
||||
on that later) are replaced with `content[<somekey>]` (which should be a
|
||||
node), while surrounding text becomes `textNode`s.
|
||||
To escape a delimiter, repeat it (`"{{"`).
|
||||
@ -1476,7 +1476,7 @@ any way, correspond to the jump-index of the nodes!
|
||||
numbered placeholder).
|
||||
If a key appears more than once in `format`, the node in
|
||||
`content[<duplicate_key>]` is inserted for the first, and copies of it for
|
||||
subsequent occurences.
|
||||
subsequent occurrences.
|
||||
- `nodes`: just a table of nodes.
|
||||
- `opts`: optional arguments:
|
||||
- `delimiters`: string, two characters. Change `{}` to some other pair, e.g.
|
||||
@ -1589,7 +1589,7 @@ Here’s one set of example keybindings:
|
||||
inoremap <c-f> <cmd>lua require('luasnip.extras.otf').on_the_fly("e")<cr>
|
||||
<
|
||||
|
||||
Obviously, `<c-f>` is arbritary and can be changed to any other key combo.
|
||||
Obviously, `<c-f>` is arbitrary and can be changed to any other key combo.
|
||||
Another interesting application is allowing multiple on-the-fly snippets at the
|
||||
same time by retrieving snippets from multiple registers:
|
||||
|
||||
@ -1629,7 +1629,7 @@ Contains some utility functions that can be passed to the `ft_func` or
|
||||
the buffer.
|
||||
- `from_cursor_pos`: uses treesitter to determine the filetype at the cursor.
|
||||
With that, it’s possible to expand snippets in injected regions, as long as
|
||||
the treesitter parser supports them. If this is used in conjuction with
|
||||
the treesitter parser supports them. If this is used in conjunction with
|
||||
`lazy_load`, extra care must be taken that all the filetypes that can be
|
||||
expanded in a given buffer are also returned by `load_ft_func` (otherwise their
|
||||
snippets may not be loaded). This can easily be achieved with `extend_load_ft`.
|
||||
@ -1637,7 +1637,7 @@ Contains some utility functions that can be passed to the `ft_func` or
|
||||
described above is loading more filetypes than just that of the target buffer
|
||||
when `lazy_load`ing. This can be done ergonomically via `extend_load_ft`:
|
||||
calling it with a table where the keys are filetypes, and the values are the
|
||||
filetypes that should be loaded additionaly returns a function that can be
|
||||
filetypes that should be loaded additionally returns a function that can be
|
||||
passed to `load_ft_func` and takes care of extending the filetypes properly.
|
||||
>lua
|
||||
ls.setup({
|
||||
@ -1661,7 +1661,7 @@ which alters text before the snippet’s trigger. While these can be
|
||||
implemented using regTrig snippets, this helper makes the process easier in
|
||||
most cases.
|
||||
|
||||
The simplest example, which surrounds the text preceeding the `.br` with
|
||||
The simplest example, which surrounds the text preceding the `.br` with
|
||||
brackets `[]`, looks like:
|
||||
|
||||
>lua
|
||||
@ -1709,7 +1709,7 @@ as the table in the same position for `s` except:
|
||||
against. The default match pattern is `"[%w%.%_%-]+$"`. Note the `$`. This
|
||||
matches since only the line _up until_ the beginning of the trigger is
|
||||
matched against the pattern, which makes the character immediately
|
||||
preceeding the trigger match as the end of the string.
|
||||
preceding the trigger match as the end of the string.
|
||||
|
||||
Some other match strings, including the default, are available from the postfix
|
||||
module. `require("luasnip.extras.postfix).matches`:
|
||||
@ -1746,7 +1746,7 @@ TREESITTER-POSTFIX-SNIPPET *luasnip-extras-treesitter-postfix-snippet*
|
||||
Instead of triggering a postfix-snippet when some pattern matches in front of
|
||||
the trigger, it might be useful to match if some specific treesitter-nodes
|
||||
surround/are in front of the trigger. While this functionality can also be
|
||||
implemented by a cusutom `resolveExpandParams`, this helper simplifies the
|
||||
implemented by a custom `resolveExpandParams`, this helper simplifies the
|
||||
common cases.
|
||||
|
||||
This matching of treesitter-nodes can be done either
|
||||
@ -1757,7 +1757,7 @@ This matching of treesitter-nodes can be done either
|
||||
- by providing a function that manually walks the node-tree, and returns the
|
||||
node in front of the trigger on success (for increased flexibility).
|
||||
|
||||
A simple example, which surrounds the previous node’s text preceeding the
|
||||
A simple example, which surrounds the previous node’s text preceding the
|
||||
`.mv` with `std::move()` in cpp files, looks like:
|
||||
|
||||
>lua
|
||||
@ -2175,9 +2175,9 @@ although, for usage outside of LuaSnip, best copy the source file:
|
||||
- arg_indx, `number` (required): the position of the parameter to override.
|
||||
- extend, `fn(arg, extend_value) -> effective_arg` (optional): this function
|
||||
is used to extend the args passed to the decorated function.
|
||||
It defaults to a function which just extends the the arg-table with the
|
||||
It defaults to a function which just extends the arg-table with the
|
||||
extend table (accepts `nil`).
|
||||
This extend behaviour is adaptable to accomodate `s`, where the first
|
||||
This extend behaviour is adaptable to accommodate `s`, where the first
|
||||
argument may be string or table.
|
||||
|
||||
`apply(fn, ...) -> decorated_fn`:
|
||||
@ -2394,7 +2394,7 @@ variable is unknown (that is, its name isn’t defined) the name of the
|
||||
variable is inserted and it is transformed into a placeholder.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
The above necessiates a differentiation between `unknown` and `unset`
|
||||
The above necessitates a differentiation between `unknown` and `unset`
|
||||
variables:
|
||||
|
||||
For LuaSnip, a variable `VARNAME` is `unknown` when `env.VARNAME` returns `nil`
|
||||
@ -2439,7 +2439,7 @@ where `opts` can contain the following keys:
|
||||
- `include`: List of languages to include, includes everything by default.
|
||||
- `{override,default}_priority`: These keys are passed straight to the
|
||||
`add_snippets`-calls (documented in |luasnip-api|) and can therefore change the
|
||||
priority of snippets loaded from some colletion (or, in combination with
|
||||
priority of snippets loaded from some collection (or, in combination with
|
||||
`{in,ex}clude`, only some of its snippets).
|
||||
- `fs_event_providers`: `table<string, boolean>?`, specifies which mechanisms
|
||||
should be used to watch files for updates/creation.
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,14 +0,0 @@
|
||||
" Vim filetype plugin for SnipMate snippets (.snippets files)
|
||||
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
let b:undo_ftplugin = "setl et< sts< cms< fdm< fde<"
|
||||
|
||||
" Use hard tabs
|
||||
setlocal noexpandtab softtabstop=0
|
||||
|
||||
setlocal commentstring=#\ %s
|
||||
setlocal nospell
|
||||
@ -1,37 +0,0 @@
|
||||
local git_ref = 'v2.3.0'
|
||||
local modrev = '2.3.0'
|
||||
local specrev = '1'
|
||||
|
||||
local repo_url = 'https://github.com/L3MON4D3/LuaSnip'
|
||||
|
||||
rockspec_format = '3.0'
|
||||
package = 'luasnip'
|
||||
version = modrev ..'-'.. specrev
|
||||
|
||||
description = {
|
||||
summary = 'Snippet Engine for Neovim written in Lua.',
|
||||
detailed = '',
|
||||
labels = { 'lua', 'neovim', 'snippet-engine', 'snippets' } ,
|
||||
homepage = 'https://github.com/L3MON4D3/LuaSnip',
|
||||
license = 'Apache-2.0'
|
||||
}
|
||||
|
||||
dependencies = { 'lua >= 5.1', 'jsregexp >= 0.0.5, <= 0.0.7' }
|
||||
|
||||
test_dependencies = { }
|
||||
|
||||
source = {
|
||||
url = repo_url .. '/archive/' .. git_ref .. '.zip',
|
||||
dir = 'LuaSnip-' .. '2.3.0',
|
||||
}
|
||||
|
||||
if modrev == 'scm' or modrev == 'dev' then
|
||||
source = {
|
||||
url = repo_url:gsub('https', 'git')
|
||||
}
|
||||
end
|
||||
|
||||
build = {
|
||||
type = 'builtin',
|
||||
copy_directories = { 'doc', 'ftplugin', 'plugin', 'syntax' } ,
|
||||
}
|
||||
@ -1,90 +0,0 @@
|
||||
vim.filetype.add({
|
||||
extension = { snippets = "snippets" },
|
||||
})
|
||||
|
||||
local function silent_map(mode, lhs, rhs, desc)
|
||||
vim.keymap.set(mode, lhs, rhs, { silent = true, desc = desc or "" })
|
||||
end
|
||||
|
||||
silent_map("i", "<Plug>luasnip-expand-or-jump", function()
|
||||
require("luasnip").expand_or_jump()
|
||||
end, "LuaSnip: Expand or jump in the current snippet")
|
||||
silent_map("i", "<Plug>luasnip-expand-snippet", function()
|
||||
require("luasnip").expand()
|
||||
end, "LuaSnip: Expand the current snippet")
|
||||
silent_map("i", "<Plug>luasnip-next-choice", function()
|
||||
require("luasnip").change_choice(1)
|
||||
end, "LuaSnip: Change to the next choice from the choiceNode")
|
||||
silent_map("i", "<Plug>luasnip-prev-choice", function()
|
||||
require("luasnip").change_choice(-1)
|
||||
end, "LuaSnip: Change to the previous choice from the choiceNode")
|
||||
silent_map("i", "<Plug>luasnip-jump-next", function()
|
||||
require("luasnip").jump(1)
|
||||
end, "LuaSnip: Jump to the next node")
|
||||
silent_map("i", "<Plug>luasnip-jump-prev", function()
|
||||
require("luasnip").jump(-1)
|
||||
end, "LuaSnip: Jump to the previous node")
|
||||
|
||||
silent_map("n", "<Plug>luasnip-delete-check", function()
|
||||
require("luasnip").unlink_current_if_deleted()
|
||||
end, "LuaSnip: Removes current snippet from jumplist")
|
||||
silent_map("!", "<Plug>luasnip-delete-check", function()
|
||||
require("luasnip").unlink_current_if_deleted()
|
||||
end, "LuaSnip: Removes current snippet from jumplist")
|
||||
|
||||
silent_map("", "<Plug>luasnip-expand-repeat", function()
|
||||
require("luasnip").expand_repeat()
|
||||
end, "LuaSnip: Repeat last node expansion")
|
||||
silent_map("!", "<Plug>luasnip-expand-repeat", function()
|
||||
require("luasnip").expand_repeat()
|
||||
end, "LuaSnip: Repeat last node expansion")
|
||||
|
||||
silent_map("s", "<Plug>luasnip-expand-or-jump", function()
|
||||
require("luasnip").expand_or_jump()
|
||||
end, "LuaSnip: Expand or jump in the current snippet")
|
||||
silent_map("s", "<Plug>luasnip-expand-snippet", function()
|
||||
require("luasnip").expand()
|
||||
end, "LuaSnip: Expand the current snippet")
|
||||
silent_map("s", "<Plug>luasnip-next-choice", function()
|
||||
require("luasnip").change_choice(1)
|
||||
end, "LuaSnip: Change to the next choice from the choiceNode")
|
||||
silent_map("s", "<Plug>luasnip-prev-choice", function()
|
||||
require("luasnip").change_choice(-1)
|
||||
end, "LuaSnip: Change to the previous choice from the choiceNode")
|
||||
silent_map("s", "<Plug>luasnip-jump-next", function()
|
||||
require("luasnip").jump(1)
|
||||
end, "LuaSnip: Jump to the next node")
|
||||
silent_map("s", "<Plug>luasnip-jump-prev", function()
|
||||
require("luasnip").jump(-1)
|
||||
end, "LuaSnip: Jump to the previous node")
|
||||
|
||||
vim.api.nvim_create_user_command("LuaSnipUnlinkCurrent", function()
|
||||
require("luasnip").unlink_current()
|
||||
end, { force = true })
|
||||
|
||||
--stylua: ignore
|
||||
vim.api.nvim_create_user_command("LuaSnipListAvailable", function()
|
||||
(
|
||||
(
|
||||
vim.version
|
||||
and type(vim.version) == "table"
|
||||
and (
|
||||
((vim.version().major == 0) and (vim.version().minor >= 9))
|
||||
or (vim.version().major > 0) )
|
||||
) and vim.print
|
||||
or vim.pretty_print
|
||||
)(require("luasnip").available())
|
||||
end, { force = true })
|
||||
|
||||
require("luasnip.config")._setup()
|
||||
|
||||
-- register these during startup so lazy_load will also load filetypes whose
|
||||
-- events fired only before lazy_load is actually called.
|
||||
-- (BufWinEnter -> lazy_load() wouldn't load any files without these).
|
||||
vim.api.nvim_create_augroup("_luasnip_lazy_load", {})
|
||||
vim.api.nvim_create_autocmd({ "BufWinEnter", "FileType" }, {
|
||||
callback = function(event)
|
||||
require("luasnip.loaders").load_lazy_loaded(tonumber(event.buf))
|
||||
end,
|
||||
group = "_luasnip_lazy_load",
|
||||
})
|
||||
@ -1,23 +0,0 @@
|
||||
function! luasnip#expandable()
|
||||
return luaeval('require("luasnip").expandable()')
|
||||
endfunction
|
||||
|
||||
function! luasnip#expand_or_jumpable()
|
||||
return luaeval('require("luasnip").expand_or_jumpable()')
|
||||
endfunction
|
||||
|
||||
function! luasnip#expand_or_locally_jumpable()
|
||||
return luaeval('require("luasnip").expand_or_locally_jumpable()')
|
||||
endfunction
|
||||
|
||||
function! luasnip#locally_jumpable(direction)
|
||||
return luaeval('require("luasnip").locally_jumpable(_A)', a:direction)
|
||||
endfunction
|
||||
|
||||
function! luasnip#jumpable(direction)
|
||||
return luaeval('require("luasnip").jumpable(_A)', a:direction)
|
||||
endfunction
|
||||
|
||||
function! luasnip#choice_active()
|
||||
return luaeval('require("luasnip").choice_active()')
|
||||
endfunction
|
||||
@ -1,116 +0,0 @@
|
||||
rock_manifest = {
|
||||
doc = {
|
||||
["luasnip.txt"] = "5014cf9a2bb7c7360fd34a1a02356207"
|
||||
},
|
||||
ftplugin = {
|
||||
["snippets.vim"] = "ecd77fcf256c792985acf12ea7603322"
|
||||
},
|
||||
lua = {
|
||||
luasnip = {
|
||||
["_types.lua"] = "a1b1fc45d496f8ece3e17dc3541e5f93",
|
||||
["config.lua"] = "1bb0edf593b14b243b116d70cbb605c9",
|
||||
["default_config.lua"] = "51eea9c217eed18af81d580129c70461",
|
||||
extras = {
|
||||
["_extra_types.lua"] = "b8f4a120d5abe22f0112efdcae358817",
|
||||
["_lambda.lua"] = "e94a2ad0606ed3c4276a573d4e7ab205",
|
||||
["_parser_combinator.lua"] = "bacc166557d1b5f9f03aff25a56bc801",
|
||||
["_treesitter.lua"] = "d9fb19599b9d95edab033fdda0684c32",
|
||||
conditions = {
|
||||
["expand.lua"] = "35c3ab55ec8e9916ed7cde31cc807b08",
|
||||
["init.lua"] = "12f7e4b6fd6b5796c36ce61db5844efd",
|
||||
["show.lua"] = "0cd4059f6ba5582f409ced580e9fef13"
|
||||
},
|
||||
["expand_conditions.lua"] = "6ea7479cea2e5fac95a2045a6a283d4b",
|
||||
["filetype_functions.lua"] = "bdab365ff7bd2d7d148fdc6b3b78d9b4",
|
||||
["fmt.lua"] = "014768af82d3e7e58437e41335553eb6",
|
||||
["init.lua"] = "560335e3043e97a826fc8aee4b250fbc",
|
||||
["otf.lua"] = "8a95cdb7b582497542069bdd0886776b",
|
||||
["postfix.lua"] = "5e94359e6642b52d8ef6c9df3a90e167",
|
||||
["select_choice.lua"] = "8c924f05ee0d55ab9b0d9e5c603e1a52",
|
||||
["snip_location.lua"] = "bd0f8a7f1c61f6a001fa5781c15839d5",
|
||||
["snippet_list.lua"] = "fe61183934e0bb966b83461febdd1dcb",
|
||||
["treesitter_postfix.lua"] = "42a5143ad3c647d292b2183566fd6776"
|
||||
},
|
||||
["health.lua"] = "b6bd288f728f6897674347ad46917a5b",
|
||||
["init.lua"] = "96451aae98dbaf3ece53873298479172",
|
||||
loaders = {
|
||||
["data.lua"] = "498490d7dfcf2f0374b0d20f429ba6fb",
|
||||
["from_lua.lua"] = "78d20ec3694e16581e21ed4948c26385",
|
||||
["from_snipmate.lua"] = "93e1cdc6e024549d9aa6bc917325de24",
|
||||
["from_vscode.lua"] = "0ff819764a09a735f9ea8ef51413ae83",
|
||||
["fs_watchers.lua"] = "b36b9f60988b568602350c41b032f9e6",
|
||||
["init.lua"] = "d470bc3c7bd4690199cf1c0d214782cf",
|
||||
["snippet_cache.lua"] = "e2b5cf9a46713fb3f108067100e77e0c",
|
||||
["types.lua"] = "89e18f0f21c1e77be74c1cbe85757d11",
|
||||
["util.lua"] = "77a85743643bf4d15cbe91af429908d5"
|
||||
},
|
||||
nodes = {
|
||||
["absolute_indexer.lua"] = "efa73978bd91f2d90f2fc9ef53a9c38c",
|
||||
["choiceNode.lua"] = "c63618056997ec5aec6524fffff7f2fb",
|
||||
["duplicate.lua"] = "454e20ad45dbf371aa7d09aa21861f1c",
|
||||
["dynamicNode.lua"] = "28f4e7a46281dc3a2af0875ffc5ff58c",
|
||||
["functionNode.lua"] = "cf7cb4efb677a139618fd9255734873e",
|
||||
["insertNode.lua"] = "a25a723746e7ab5973901855de1d1f11",
|
||||
["key_indexer.lua"] = "d1c4887dfc10501f09b7851aea25f842",
|
||||
["multiSnippet.lua"] = "2eab1e75c5ee87096f03db006da31844",
|
||||
["node.lua"] = "c1d2f45dd25dcf5c1574ff63e0f9e88c",
|
||||
["restoreNode.lua"] = "9613ce23458968aa12737365dd302be7",
|
||||
["snippet.lua"] = "d6a31a62f45a460bc642822b6d0244f7",
|
||||
["snippetProxy.lua"] = "68262858f0f9a20a41640d5a11c43481",
|
||||
["textNode.lua"] = "c22395ab8305a581f021982cd88e2931",
|
||||
util = {
|
||||
["trig_engines.lua"] = "a023c5ca92103478cbf40b7ffe2de903"
|
||||
},
|
||||
["util.lua"] = "a6be1172f1b37f2018460900b0ab987d"
|
||||
},
|
||||
session = {
|
||||
["enqueueable_operations.lua"] = "2e4f57314f0573601e35943f56e8d4d8",
|
||||
["init.lua"] = "213d2ea8110e267278d62f5853151ceb",
|
||||
snippet_collection = {
|
||||
["init.lua"] = "2d5015eb7cb5717f5aa44fdeebffbe59",
|
||||
["source.lua"] = "17f2f0c590d4deb57ae0e7af20c153ec"
|
||||
}
|
||||
},
|
||||
["snippets.lua"] = "d41d8cd98f00b204e9800998ecf8427e",
|
||||
util = {
|
||||
["_builtin_vars.lua"] = "cb7e73099c5711556f8df8821ca4a182",
|
||||
["auto_table.lua"] = "f9c5f84a99e71df229c4b6506a447727",
|
||||
["dict.lua"] = "83d98b784cfe6ab28c1d3727e7220110",
|
||||
["directed_graph.lua"] = "7eb06677cf726e6be7d64d470660677c",
|
||||
["environ.lua"] = "61b0b01947a335f749e854f039ec77ac",
|
||||
["events.lua"] = "cdac0c08202f1295a0bd9f5ee5909b3b",
|
||||
["ext_opts.lua"] = "55f3ee33870b070d50c3eae516b4724a",
|
||||
["extend_decorator.lua"] = "07576b8535b2729c9d70f5ba5b036a92",
|
||||
["functions.lua"] = "86ccff508ce6b6eeefc455308e7d4994",
|
||||
["jsonc.lua"] = "94fbde2a919a24f3957d004aaf7d136d",
|
||||
["jsregexp.lua"] = "59eb40a43fa328e82b086863dcbfa626",
|
||||
["lazy_table.lua"] = "7b0f31805982e74c3e693fd60ad42ec2",
|
||||
["log.lua"] = "ffe073da229ae489cc72e576c0ab6bee",
|
||||
["mark.lua"] = "135f7a32a6f1031ea0eb80688997f3d3",
|
||||
parser = {
|
||||
["ast_parser.lua"] = "230087c74af6009d8a858259808f3e51",
|
||||
["ast_utils.lua"] = "7013bc099f5ed408c4cd49b29e4ce63c",
|
||||
["init.lua"] = "5ae80471a9893a45b12b77a35ecc8d81",
|
||||
["neovim_ast.lua"] = "08e136ffd26023ef3172ec2aed4ad2e9",
|
||||
["neovim_parser.lua"] = "c25f144947bceed6036e3d40b70bdef0"
|
||||
},
|
||||
["path.lua"] = "3767ba134238fa42469cfcbcfdf16147",
|
||||
["pattern_tokenizer.lua"] = "f4f99d27e6a6fb5385f583abc70beaab",
|
||||
["select.lua"] = "b0a8180922f7995a86ea9df7eabb162e",
|
||||
["str.lua"] = "06645f5bc876c73af9c4fd3296d620e0",
|
||||
["table.lua"] = "f4a54a5775133c776d65643be728cfdb",
|
||||
["time.lua"] = "54483e160266c85209e4399fbfc43e1b",
|
||||
["types.lua"] = "6605cc2d2293f7080d104c63663c0dac",
|
||||
["util.lua"] = "ac9ec42f0d014d908ff24c5af8172335"
|
||||
}
|
||||
}
|
||||
},
|
||||
["luasnip-2.3.0-1.rockspec"] = "51f9eecc66d3003eb668326f1e4a0e68",
|
||||
plugin = {
|
||||
["luasnip.lua"] = "189a598faa80a372be83a52dc57fb491",
|
||||
["luasnip.vim"] = "e3d30107f8659679f6766d579ce5bf56"
|
||||
},
|
||||
syntax = {
|
||||
["snippets.vim"] = "5ea760f9406519fc824e2c941ef4d858"
|
||||
}
|
||||
}
|
||||
@ -1,29 +0,0 @@
|
||||
" Syntax highlighting for .snippets files
|
||||
" Hopefully this should make snippets a bit nicer to write!
|
||||
syn match snipComment '^#.*'
|
||||
syn match placeHolder '\${\d\+\(:.\{-}\)\=}' contains=snipCommand
|
||||
syn match tabStop '\$\d\+'
|
||||
syn match snipEscape '\\\\\|\\`'
|
||||
syn match snipCommand '\%(\\\@<!\%(\\\\\)*\)\@<=`.\{-}\%(\\\@<!\%(\\\\\)*\)\@<=`'
|
||||
syn match snippet '^snippet.*' contains=multiSnipText,snipKeyword
|
||||
syn match snippet '^autosnippet.*' contains=multiSnipText,snipKeyword
|
||||
syn match snippet '^extends.*' contains=snipKeyword
|
||||
syn match snippet '^version.*' contains=snipKeyword
|
||||
syn match snippet '^priority.*' contains=snipKeyword,priority
|
||||
syn match priority '\d\+' contained
|
||||
syn match multiSnipText '\S\+ \zs.*' contained
|
||||
syn match snipKeyword '^(snippet|extends|version|autosnippet|priority)'me=s+8 contained
|
||||
" normally we'd want a \s in that group, but that doesn't work => cover common
|
||||
" cases with \t and " ".
|
||||
syn match snipError "^[^#vsaep\t ].*$"
|
||||
|
||||
hi link snippet Identifier
|
||||
hi link snipComment Comment
|
||||
hi link multiSnipText String
|
||||
hi link snipKeyword Keyword
|
||||
hi link snipEscape SpecialChar
|
||||
hi link placeHolder Special
|
||||
hi link tabStop Special
|
||||
hi link snipCommand String
|
||||
hi link snipError Error
|
||||
hi link priority Number
|
||||
@ -1,363 +0,0 @@
|
||||
commands = {}
|
||||
dependencies = {
|
||||
jsregexp = {},
|
||||
luasnip = {
|
||||
["2.3.0-1"] = {
|
||||
{
|
||||
constraints = {
|
||||
{
|
||||
op = ">=",
|
||||
version = {
|
||||
5, 1, string = "5.1"
|
||||
}
|
||||
}
|
||||
},
|
||||
name = "lua"
|
||||
},
|
||||
{
|
||||
constraints = {
|
||||
{
|
||||
op = ">=",
|
||||
version = {
|
||||
0, 0, 5, string = "0.0.5"
|
||||
}
|
||||
},
|
||||
{
|
||||
op = "<=",
|
||||
version = {
|
||||
0, 0, 7, string = "0.0.7"
|
||||
}
|
||||
}
|
||||
},
|
||||
name = "jsregexp"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
modules = {
|
||||
["luasnip._types"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.config"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.default_config"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.extras._extra_types"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.extras._lambda"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.extras._parser_combinator"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.extras._treesitter"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.extras.conditions.expand"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.extras.conditions.init"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.extras.conditions.show"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.extras.expand_conditions"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.extras.filetype_functions"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.extras.fmt"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.extras.init"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.extras.otf"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.extras.postfix"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.extras.select_choice"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.extras.snip_location"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.extras.snippet_list"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.extras.treesitter_postfix"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.health"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.init"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.loaders.data"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.loaders.from_lua"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.loaders.from_snipmate"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.loaders.from_vscode"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.loaders.fs_watchers"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.loaders.init"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.loaders.snippet_cache"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.loaders.types"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.loaders.util"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.nodes.absolute_indexer"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.nodes.choiceNode"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.nodes.duplicate"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.nodes.dynamicNode"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.nodes.functionNode"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.nodes.insertNode"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.nodes.key_indexer"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.nodes.multiSnippet"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.nodes.node"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.nodes.restoreNode"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.nodes.snippet"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.nodes.snippetProxy"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.nodes.textNode"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.nodes.util"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.nodes.util.trig_engines"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.session.enqueueable_operations"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.session.init"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.session.snippet_collection.init"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.session.snippet_collection.source"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.snippets"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util._builtin_vars"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.auto_table"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.dict"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.directed_graph"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.environ"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.events"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.ext_opts"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.extend_decorator"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.functions"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.jsonc"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.jsregexp"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.lazy_table"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.log"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.mark"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.parser.ast_parser"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.parser.ast_utils"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.parser.init"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.parser.neovim_ast"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.parser.neovim_parser"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.path"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.pattern_tokenizer"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.select"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.str"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.table"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.time"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.types"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
},
|
||||
["luasnip.util.util"] = {
|
||||
"luasnip/2.3.0-1"
|
||||
}
|
||||
}
|
||||
repository = {
|
||||
luasnip = {
|
||||
["2.3.0-1"] = {
|
||||
{
|
||||
arch = "installed",
|
||||
commands = {},
|
||||
dependencies = {},
|
||||
modules = {
|
||||
["luasnip._types"] = "luasnip/_types.lua",
|
||||
["luasnip.config"] = "luasnip/config.lua",
|
||||
["luasnip.default_config"] = "luasnip/default_config.lua",
|
||||
["luasnip.extras._extra_types"] = "luasnip/extras/_extra_types.lua",
|
||||
["luasnip.extras._lambda"] = "luasnip/extras/_lambda.lua",
|
||||
["luasnip.extras._parser_combinator"] = "luasnip/extras/_parser_combinator.lua",
|
||||
["luasnip.extras._treesitter"] = "luasnip/extras/_treesitter.lua",
|
||||
["luasnip.extras.conditions.expand"] = "luasnip/extras/conditions/expand.lua",
|
||||
["luasnip.extras.conditions.init"] = "luasnip/extras/conditions/init.lua",
|
||||
["luasnip.extras.conditions.show"] = "luasnip/extras/conditions/show.lua",
|
||||
["luasnip.extras.expand_conditions"] = "luasnip/extras/expand_conditions.lua",
|
||||
["luasnip.extras.filetype_functions"] = "luasnip/extras/filetype_functions.lua",
|
||||
["luasnip.extras.fmt"] = "luasnip/extras/fmt.lua",
|
||||
["luasnip.extras.init"] = "luasnip/extras/init.lua",
|
||||
["luasnip.extras.otf"] = "luasnip/extras/otf.lua",
|
||||
["luasnip.extras.postfix"] = "luasnip/extras/postfix.lua",
|
||||
["luasnip.extras.select_choice"] = "luasnip/extras/select_choice.lua",
|
||||
["luasnip.extras.snip_location"] = "luasnip/extras/snip_location.lua",
|
||||
["luasnip.extras.snippet_list"] = "luasnip/extras/snippet_list.lua",
|
||||
["luasnip.extras.treesitter_postfix"] = "luasnip/extras/treesitter_postfix.lua",
|
||||
["luasnip.health"] = "luasnip/health.lua",
|
||||
["luasnip.init"] = "luasnip/init.lua",
|
||||
["luasnip.loaders.data"] = "luasnip/loaders/data.lua",
|
||||
["luasnip.loaders.from_lua"] = "luasnip/loaders/from_lua.lua",
|
||||
["luasnip.loaders.from_snipmate"] = "luasnip/loaders/from_snipmate.lua",
|
||||
["luasnip.loaders.from_vscode"] = "luasnip/loaders/from_vscode.lua",
|
||||
["luasnip.loaders.fs_watchers"] = "luasnip/loaders/fs_watchers.lua",
|
||||
["luasnip.loaders.init"] = "luasnip/loaders/init.lua",
|
||||
["luasnip.loaders.snippet_cache"] = "luasnip/loaders/snippet_cache.lua",
|
||||
["luasnip.loaders.types"] = "luasnip/loaders/types.lua",
|
||||
["luasnip.loaders.util"] = "luasnip/loaders/util.lua",
|
||||
["luasnip.nodes.absolute_indexer"] = "luasnip/nodes/absolute_indexer.lua",
|
||||
["luasnip.nodes.choiceNode"] = "luasnip/nodes/choiceNode.lua",
|
||||
["luasnip.nodes.duplicate"] = "luasnip/nodes/duplicate.lua",
|
||||
["luasnip.nodes.dynamicNode"] = "luasnip/nodes/dynamicNode.lua",
|
||||
["luasnip.nodes.functionNode"] = "luasnip/nodes/functionNode.lua",
|
||||
["luasnip.nodes.insertNode"] = "luasnip/nodes/insertNode.lua",
|
||||
["luasnip.nodes.key_indexer"] = "luasnip/nodes/key_indexer.lua",
|
||||
["luasnip.nodes.multiSnippet"] = "luasnip/nodes/multiSnippet.lua",
|
||||
["luasnip.nodes.node"] = "luasnip/nodes/node.lua",
|
||||
["luasnip.nodes.restoreNode"] = "luasnip/nodes/restoreNode.lua",
|
||||
["luasnip.nodes.snippet"] = "luasnip/nodes/snippet.lua",
|
||||
["luasnip.nodes.snippetProxy"] = "luasnip/nodes/snippetProxy.lua",
|
||||
["luasnip.nodes.textNode"] = "luasnip/nodes/textNode.lua",
|
||||
["luasnip.nodes.util"] = "luasnip/nodes/util.lua",
|
||||
["luasnip.nodes.util.trig_engines"] = "luasnip/nodes/util/trig_engines.lua",
|
||||
["luasnip.session.enqueueable_operations"] = "luasnip/session/enqueueable_operations.lua",
|
||||
["luasnip.session.init"] = "luasnip/session/init.lua",
|
||||
["luasnip.session.snippet_collection.init"] = "luasnip/session/snippet_collection/init.lua",
|
||||
["luasnip.session.snippet_collection.source"] = "luasnip/session/snippet_collection/source.lua",
|
||||
["luasnip.snippets"] = "luasnip/snippets.lua",
|
||||
["luasnip.util._builtin_vars"] = "luasnip/util/_builtin_vars.lua",
|
||||
["luasnip.util.auto_table"] = "luasnip/util/auto_table.lua",
|
||||
["luasnip.util.dict"] = "luasnip/util/dict.lua",
|
||||
["luasnip.util.directed_graph"] = "luasnip/util/directed_graph.lua",
|
||||
["luasnip.util.environ"] = "luasnip/util/environ.lua",
|
||||
["luasnip.util.events"] = "luasnip/util/events.lua",
|
||||
["luasnip.util.ext_opts"] = "luasnip/util/ext_opts.lua",
|
||||
["luasnip.util.extend_decorator"] = "luasnip/util/extend_decorator.lua",
|
||||
["luasnip.util.functions"] = "luasnip/util/functions.lua",
|
||||
["luasnip.util.jsonc"] = "luasnip/util/jsonc.lua",
|
||||
["luasnip.util.jsregexp"] = "luasnip/util/jsregexp.lua",
|
||||
["luasnip.util.lazy_table"] = "luasnip/util/lazy_table.lua",
|
||||
["luasnip.util.log"] = "luasnip/util/log.lua",
|
||||
["luasnip.util.mark"] = "luasnip/util/mark.lua",
|
||||
["luasnip.util.parser.ast_parser"] = "luasnip/util/parser/ast_parser.lua",
|
||||
["luasnip.util.parser.ast_utils"] = "luasnip/util/parser/ast_utils.lua",
|
||||
["luasnip.util.parser.init"] = "luasnip/util/parser/init.lua",
|
||||
["luasnip.util.parser.neovim_ast"] = "luasnip/util/parser/neovim_ast.lua",
|
||||
["luasnip.util.parser.neovim_parser"] = "luasnip/util/parser/neovim_parser.lua",
|
||||
["luasnip.util.path"] = "luasnip/util/path.lua",
|
||||
["luasnip.util.pattern_tokenizer"] = "luasnip/util/pattern_tokenizer.lua",
|
||||
["luasnip.util.select"] = "luasnip/util/select.lua",
|
||||
["luasnip.util.str"] = "luasnip/util/str.lua",
|
||||
["luasnip.util.table"] = "luasnip/util/table.lua",
|
||||
["luasnip.util.time"] = "luasnip/util/time.lua",
|
||||
["luasnip.util.types"] = "luasnip/util/types.lua",
|
||||
["luasnip.util.util"] = "luasnip/util/util.lua"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1 +1 @@
|
||||
/nix/store/qhhsw7qjik5gh1wkai703p6dq0ydp15r-lua5.1-jsregexp-0.0.7-1 /nix/store/mqbhz05llkddfb5wni0m48kw22ixxps4-lua-5.1.5
|
||||
/nix/store/49605i88r5g5idzd2cbzd9szhjkf65vj-lua5.1-jsregexp-0.0.7-1 /nix/store/3czmrawji85vf8979kll2yx2f1kjkric-lua-5.1.5
|
||||
@ -1,6 +1,6 @@
|
||||
rock_manifest = {
|
||||
doc = {
|
||||
["luasnip.txt"] = "5014cf9a2bb7c7360fd34a1a02356207"
|
||||
["luasnip.txt"] = "7e261d38c2e7f702be9f26b7b6bc2358"
|
||||
},
|
||||
ftplugin = {
|
||||
["snippets.vim"] = "ecd77fcf256c792985acf12ea7603322"
|
||||
|
||||
Reference in New Issue
Block a user