fix(git): set filetype on URI buffers from the inner path

This commit is contained in:
2026-04-29 11:27:50 +02:00
parent e5c049bdaa
commit fc3652502a
2 changed files with 19 additions and 12 deletions
-7
View File
@@ -35,13 +35,6 @@ function M.setup()
for name, link in pairs(HIGHLIGHTS) do
vim.api.nvim_set_hl(0, name, { link = link, default = true })
end
vim.filetype.add({
pattern = {
["git://.*:([^:]+)$"] = function(_, bufnr, inner)
return vim.filetype.match({ filename = inner, buf = bufnr })
end,
},
})
local group = vim.api.nvim_create_augroup("ow.git", { clear = true })
vim.api.nvim_create_autocmd("BufReadCmd", {
pattern = "git://*",