fix(git): set filetype on URI buffers from the inner path
This commit is contained in:
@@ -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://*",
|
||||
|
||||
Reference in New Issue
Block a user