dotfiles from arch

This commit is contained in:
2025-09-28 11:39:12 +02:00
parent 75885729cd
commit d1c6923bbb
1358 changed files with 575835 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
{
// if not set, the folder name will be used
"name" : "Example",
// list of matched words
"words" : ["thisIsAnExampleWord%.ifItExistsInFile%.thenTryLoadThisLibrary"],
// list or matched file names. `.lua`, `.dll` and `.so` only
"files" : ["thisIsAnExampleFile%.ifItExistsInWorkSpace%.thenTryLoadThisLibrary%.lua"],
// list of settings to be changed
"settings" : {
"Lua.runtime.version" : "LuaJIT",
"Lua.diagnostics.globals" : [
"global1",
"global2"
],
"Lua.runtime.special" : {
"include" : "require"
},
"Lua.runtime.builtin" : {
"io" : "disable"
}
}
}

View File

@@ -0,0 +1,8 @@
---@meta
local m = {}
function m.thisIsAnExampleLibrary()
end
return m

View File

@@ -0,0 +1,16 @@
-- if this file exists, then change setting `Lua.runtime.plugin`
-- see https://luals.github.io/wiki/plugins
function OnSetText(uri, text)
local diffs = {}
for start, finish in text:gmatch '()pairs()' do
diffs[#diffs+1] = {
start = start,
finish = finish - 1,
text = 'safepairs'
}
end
return diffs
end