A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/7a574e54f2309eb9d267282619f9383413b85d08 below:

add support for files under .git · neovim/neovim@7a574e5 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+6

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+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