WSL fixes
This commit is contained in:
@@ -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`.
|
||||
|
||||
|
||||
@@ -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 -----
|
||||
|
||||
Reference in New Issue
Block a user