generated from eblume/project-template
infra(nvim): add stylua formatter + prek hook; normalize heph.nvim Lua
A `.stylua.toml` (Spaces/2, else stylua defaults) + a `stylua-system` prek hook make Lua whitespace formatter-enforced (the repo had no Lua formatter, so style was hand-maintained and drifted). Normalized the three non-conformant files in passing. 21 nvim e2e specs still green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0e9cfc1fd7
commit
d85ce3362f
6 changed files with 26 additions and 17 deletions
|
|
@ -79,11 +79,16 @@ end
|
|||
--- tests of the no-daemon-running case). `rm` removes it.
|
||||
function M.tmp()
|
||||
local dir = unique_dir()
|
||||
return { dir = dir, sock = dir .. "/s", db = dir .. "/db", rm = function()
|
||||
pcall(function()
|
||||
vim.fn.delete(dir, "rf")
|
||||
end)
|
||||
end }
|
||||
return {
|
||||
dir = dir,
|
||||
sock = dir .. "/s",
|
||||
db = dir .. "/db",
|
||||
rm = function()
|
||||
pcall(function()
|
||||
vim.fn.delete(dir, "rf")
|
||||
end)
|
||||
end,
|
||||
}
|
||||
end
|
||||
|
||||
--- Start a daemon on explicit paths and bind the plugin's rpc to it. Returns a
|
||||
|
|
@ -91,10 +96,7 @@ end
|
|||
function M.start_on(dir, sock, db)
|
||||
assert(#sock < 104, "socket path too long for sun_path: " .. sock)
|
||||
local bin = M.hephd_bin()
|
||||
assert(
|
||||
vim.fn.executable(bin) == 1,
|
||||
"hephd not built/executable: " .. bin .. " (run: cargo build -p hephd)"
|
||||
)
|
||||
assert(vim.fn.executable(bin) == 1, "hephd not built/executable: " .. bin .. " (run: cargo build -p hephd)")
|
||||
|
||||
local exited = { done = false }
|
||||
local d = spawn({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue