1

Refresh generated neovim config

This commit is contained in:
2024-08-15 13:01:03 +02:00
parent 64b51cf53a
commit f5af8e2b28
1836 changed files with 38979 additions and 31094 deletions

View File

@ -1,4 +1,4 @@
*luasnip.txt* For NVIM v0.8.0 Last change: 2024 June 07
*luasnip.txt* For NVIM v0.8.0 Last change: 2024 August 01
==============================================================================
Table of Contents *luasnip-table-of-contents*
@ -3232,7 +3232,7 @@ or
>lua
vim.api.nvim_create_autocommand("User", {
patter = "SomeUserEvent",
pattern = "SomeUserEvent",
command = "echom SomeUserEvent was triggered"
})
<

View File

@ -5,10 +5,9 @@ if exists("b:did_ftplugin")
endif
let b:did_ftplugin = 1
let b:undo_ftplugin = "setl et< sts< cms< fdm< fde<"
let b:undo_ftplugin = "setl cms< fdm< fde<"
" Use hard tabs
setlocal noexpandtab softtabstop=0
setlocal foldmethod=expr foldexpr=getline(v:lnum)=~'^#\\\|^e\\\|^p'?0:getline(v:lnum)!~'^\\t\\\|^\ \\\|^$'?'>1':1
setlocal commentstring=#\ %s
setlocal nospell

View File

@ -102,7 +102,8 @@ local function get_file_snippets(file)
-- vscode documents `,`, but `.` also works.
-- an entry `false` in this list will cause a `ft=nil` for the snippet.
local filetypes = parts.scope and vim.split(parts.scope, "[.,]")
local filetypes = parts.scope
and loader_util.scopestring_to_filetypes(parts.scope)
or { false }
local contexts = {}

View File

@ -281,6 +281,11 @@ local function normalize_opts(opts)
}
end
local function scopestring_to_filetypes(str)
local str_trimmed = str:gsub("^%s+", ""):gsub("%s+$", "")
return vim.split(str_trimmed, "%s*[.,]%s*")
end
return {
filetypelist_to_set = filetypelist_to_set,
split_lines = split_lines,
@ -296,4 +301,5 @@ return {
get_load_fts = get_load_fts,
add_file_snippets = add_file_snippets,
normalize_opts = normalize_opts,
scopestring_to_filetypes = scopestring_to_filetypes,
}

View File

@ -1 +1 @@
/nix/store/49605i88r5g5idzd2cbzd9szhjkf65vj-lua5.1-jsregexp-0.0.7-1 /nix/store/3czmrawji85vf8979kll2yx2f1kjkric-lua-5.1.5
/nix/store/74x3q8qvr31hbdbk7zxckfvyd4q92d79-lua5.1-jsregexp-0.0.7-1 /nix/store/rn8bzg423wwkayzbsbmhmvcgjmbzrq5z-lua-5.1.5

View File

@ -1,9 +1,9 @@
rock_manifest = {
doc = {
["luasnip.txt"] = "7e261d38c2e7f702be9f26b7b6bc2358"
["luasnip.txt"] = "ab6768dea4b13a6eec600fa0b60b72c9"
},
ftplugin = {
["snippets.vim"] = "ecd77fcf256c792985acf12ea7603322"
["snippets.vim"] = "f8c461751ad539fc449c15a85bf70be4"
},
lua = {
luasnip = {
@ -37,12 +37,12 @@ rock_manifest = {
["data.lua"] = "498490d7dfcf2f0374b0d20f429ba6fb",
["from_lua.lua"] = "78d20ec3694e16581e21ed4948c26385",
["from_snipmate.lua"] = "93e1cdc6e024549d9aa6bc917325de24",
["from_vscode.lua"] = "0ff819764a09a735f9ea8ef51413ae83",
["from_vscode.lua"] = "8425d97d59a85f5681207dac0461618d",
["fs_watchers.lua"] = "b36b9f60988b568602350c41b032f9e6",
["init.lua"] = "d470bc3c7bd4690199cf1c0d214782cf",
["snippet_cache.lua"] = "e2b5cf9a46713fb3f108067100e77e0c",
["types.lua"] = "89e18f0f21c1e77be74c1cbe85757d11",
["util.lua"] = "77a85743643bf4d15cbe91af429908d5"
["util.lua"] = "904465f8563d532168be374ca9203c6f"
},
nodes = {
["absolute_indexer.lua"] = "efa73978bd91f2d90f2fc9ef53a9c38c",
@ -111,6 +111,6 @@ rock_manifest = {
["luasnip.vim"] = "e3d30107f8659679f6766d579ce5bf56"
},
syntax = {
["snippets.vim"] = "5ea760f9406519fc824e2c941ef4d858"
["snippets.vim"] = "daeb3f35704d8dca029cfffc5fd5f1c4"
}
}

View File

@ -8,14 +8,13 @@ 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
syn match snipKeyword '^\%(snippet\|extends\|autosnippet\|priority\)' 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 ].*$"
syn match snipError '^[^#saep\t ].*$'
hi link snippet Identifier
hi link snipComment Comment