WSL fixes

This commit is contained in:
cool-mist
2024-02-16 15:23:46 +05:30
parent d3d59de537
commit 375be5e541
2 changed files with 31 additions and 3 deletions
+25 -2
View File
@@ -58,7 +58,8 @@ V.cmd([[
--------------------------
local packer = require('packer')
packer.startup(function(u)
packer.startup({function(u)
u 'wbthomason/packer.nvim'
-- LSP + Autocomplete
@@ -102,7 +103,29 @@ packer.startup(function(u)
if fresh_install then
packer.sync()
end
end)
end,
config = {
max_jobs = 50,
git = {
cmd = 'git',
subcommands = {
update = 'pull --ff-only --progress --rebase=false --force',
install = 'clone --depth %i --no-single-branch --progress',
fetch = 'fetch --depth 999999 --progress --force',
checkout = 'checkout %s --',
update_branch = 'merge --ff-only @{u}',
current_branch = 'branch --show-current',
diff = 'log --color=never --pretty=format:FMT --no-show-signature HEAD@{1}...HEAD',
diff_fmt = '%%h %%s (%%cr)',
get_rev = 'rev-parse --short HEAD',
get_msg = 'log --color=never --pretty=format:FMT --no-show-signature HEAD -n 1',
submodules = 'submodule update --init --recursive --progress'
},
depth = 1,
clone_timeout = 5, -- in seconds
default_url_format = 'https://github.com/%s'
},
}})
--------------------------
---- Config Section -----