mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-19 00:39:27 +02:00
fix(autocmds): auto create directory on windows for uris. Fixes #2442
This commit is contained in:
parent
1910cd5cb7
commit
7d570fad79
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ vim.api.nvim_create_autocmd({ "FileType" }, {
|
||||||
vim.api.nvim_create_autocmd({ "BufWritePre" }, {
|
vim.api.nvim_create_autocmd({ "BufWritePre" }, {
|
||||||
group = augroup("auto_create_dir"),
|
group = augroup("auto_create_dir"),
|
||||||
callback = function(event)
|
callback = function(event)
|
||||||
if event.match:match("^%w%w+://") then
|
if event.match:match("^%w%w+:[\\/][\\/]") then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local file = vim.uv.fs_realpath(event.match) or event.match
|
local file = vim.uv.fs_realpath(event.match) or event.match
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue