mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
20 lines
415 B
Plaintext
20 lines
415 B
Plaintext
|
-- Configuration file for LuaCov
|
||
|
|
||
|
local source = require("lfs").currentdir()
|
||
|
|
||
|
local function pesc(s)
|
||
|
assert(type(s) == 'string', s)
|
||
|
return s:gsub('[%(%)%.%%%+%-%*%?%[%]%^%$]', '%%%1')
|
||
|
end
|
||
|
|
||
|
return {
|
||
|
include = {
|
||
|
-- Absolute paths (starting with source dir, not hidden (i.e. .deps)).
|
||
|
pesc(source) .. "[/\\][^.].+",
|
||
|
-- Relative (non-hidden) paths.
|
||
|
'^[^/\\.]',
|
||
|
},
|
||
|
}
|
||
|
|
||
|
-- vim: ft=lua tw=80 sw=2 et
|