From c03658f01dfca884e565ad7691509c42c59b3674 Mon Sep 17 00:00:00 2001 From: cool-mist Date: Fri, 16 Feb 2024 15:23:47 +0530 Subject: [PATCH] Arch WSL fixes --- README.md | 17 +++++++++++++++-- init.lua | 13 +++++++++++++ 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f0ea2f9..ae2ab0e 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This uses Packer as the plugin manager. # Prerequisites # -- Tested on Arch. Should probably work on most linux distros. +- Tested on Arch and Arch WSL. Should probably work on most linux distros. - `neovim` - `npm` - `python` @@ -16,6 +16,7 @@ This uses Packer as the plugin manager. - `rust` - `ripgrep` - for fuzzy searching - `fzf` - for fuzzy searching +- `zk` - for notetaking # Installation # @@ -23,10 +24,22 @@ This uses Packer as the plugin manager. ## Manually ## -Above command will take a backup of your current vim settings in `~/.config/nvim/init.lua` and installs the configs from this project. You can download and place this manually as well. +Above command will take a backup of your current vim settings in `~/.config/nvim/init.lua` and installs the configs from this project. Therefore, to install manually, you can + +- Download and place this manually as well in that location +- Download it elsewhere and create a symlink to this file # Post Install # - Open `init.lua` and run `:PackerSync`. + +## Arch on WSL fixes ## + - 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) +- On Arch WSL, you would need to uncomment the clipboard settings present in the `init.lua` for faster startup times. + +# Updating # + +- Periodically run `git pull`, open `init.lua` and run `:PackerSync` +- TODO: AUR integration diff --git a/init.lua b/init.lua index f3e21e2..176181e 100644 --- a/init.lua +++ b/init.lua @@ -12,6 +12,19 @@ O.shiftwidth=2 O.expandtab=true O.preserveindent=true O.termguicolors=true +-- If running on WSL + Arch, uncomment this for faster startup +-- V.g.clipboard = { +-- name = 'win32yank', +-- copy = { +-- ["+"] = 'win32yank.exe -i --crlf', +-- ["*"] = 'win32yank.exe -i --crlf', +-- }, +-- paste = { +-- ["+"] = 'win32yank.exe -o --lf', +-- ["*"] = 'win32yank.exe -o --lf', +-- }, +-- cache_enabled = 0, +--} O.clipboard='unnamedplus' V.cmd("colorscheme habamax")