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
+6 -1
View File
@@ -9,14 +9,18 @@ This uses Packer as the plugin manager.
- neovim
- npm
- python
- python-pynvim
- pip
- go
- rust
Tested on Arch. Should probably work on most linux distros.
# Installation #
Tested on Arch. Should probably work on most linux distros.
On Arch WSL, you would need to retry by pressing `R` on the `:PackerSync` menu few times to install all the plugins, the first time around. Check [this issue](https://github.com/wbthomason/packer.nvim/issues/456)
```
make install
```
@@ -24,3 +28,4 @@ make install
That will take a backup of your current vim settings in `~/.config/nvim/init.lua` and installs the configs from this project.
Once done, open `init.lua` and run `:PackerSync`.
+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 -----