+6
-0
lines changedFilter options
+6
-0
lines changed Original file line number Diff line number Diff line change
@@ -1359,6 +1359,12 @@ local pattern = {
1359
1359
[".*/0/.*"] = function() vim.fn["dist#ft#FTfoam"]() end,
1360
1360
[".*/0%.orig/.*"] = function() vim.fn["dist#ft#FTfoam"]() end,
1361
1361
[".*/etc/sensors%.d/[^.].*"] = starsetf('sensors'),
1362
+
[".*%.git/.*"] = function(path, bufnr)
1363
+
local firstline = getline(bufnr, 1)
1364
+
if firstline:find("^" .. string.rep("%x", 40) .. "+ ") or firstline:sub(1, 5) == "ref: " then
1365
+
return "git"
1366
+
end
1367
+
end,
1362
1368
-- END PATTERN
1363
1369
}
1364
1370
-- luacheck: pop
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4