add in missing files

This commit is contained in:
XeroOl 2024-06-23 16:19:01 -05:00
parent 12c66306f8
commit 7f4856f861
2 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,50 @@
package = "fennel-ls"
rockspec_format = "3.0"
version = "scm-4"
source = {
url = "git+https://git.sr.ht/~xerool/fennel-ls"
}
description = {
summary = "A language server that analyzes Fennel, a lisp that compiles to Lua",
detailed = "LSP magic for Fennel",
homepage = "https://sr.ht/~xerool/fennel-ls",
license = "MIT",
}
dependencies = {
"lua >= 5.1",
"fennel == 1.4.2",
"dkjson >= 2.7",
}
build_dependencies = {
"fennel == 1.4.2",
}
test_dependencies = {
"faith >= 0.1.2",
"penlight >= 1.0.0",
}
build = {
type = "fennel",
modules = {
["fennel-ls"] = "src/fennel-ls.fnl",
["fennel-ls.analyzer"] = "src/fennel-ls/analyzer.fnl",
["fennel-ls.compiler"] = "src/fennel-ls/compiler.fnl",
["fennel-ls.config"] = "src/fennel-ls/config.fnl",
["fennel-ls.dispatch"] = "src/fennel-ls/dispatch.fnl",
["fennel-ls.docs"] = "src/fennel-ls/docs.fnl",
["fennel-ls.docs.lua51"] = "src/fennel-ls/docs/lua51.fnl",
["fennel-ls.docs.lua52"] = "src/fennel-ls/docs/lua52.fnl",
["fennel-ls.docs.lua53"] = "src/fennel-ls/docs/lua53.fnl",
["fennel-ls.docs.lua54"] = "src/fennel-ls/docs/lua54.fnl",
["fennel-ls.docs.tic80"] = "src/fennel-ls/docs/tic80.fnl",
["fennel-ls.files"] = "src/fennel-ls/files.fnl",
["fennel-ls.formatter"] = "src/fennel-ls/formatter.fnl",
["fennel-ls.handlers"] = "src/fennel-ls/handlers.fnl",
["fennel-ls.json-rpc"] = "src/fennel-ls/json-rpc.fnl",
["fennel-ls.lint"] = "src/fennel-ls/lint.fnl",
["fennel-ls.message"] = "src/fennel-ls/message.fnl",
["fennel-ls.searcher"] = "src/fennel-ls/searcher.fnl",
["fennel-ls.utils"] = "src/fennel-ls/utils.fnl",
},
install = { bin = {["fennel-ls"] = "src/fennel-ls.fnl"} },
}

15
tools/require-flags.fnl Normal file
View File

@ -0,0 +1,15 @@
;; There is no fennel.compiler module on disk to require.
;; It is part of fennel.lua, and doesn't need to be indcuded separately.
(local always-skip [:fennel.compiler])
(local skip-when-file-not-present [[:fennel :deps/fennel.lua]
[:dkjson :deps/dkjson.lua]])
(local skip (icollect [_ [module file] (ipairs skip-when-file-not-present)
&into always-skip]
(if (not (io.open file "r"))
module)))
(when (< 0 (length skip))
(print (.. "--skip-include " (table.concat skip ","))))