+ Package manager: paq-nvim

+ added `<leader>p` mapping for paq to:
    + install
    + update
    + clean

+ added plugins directory
    * but not `require`d by default

+ updated README w/ paq install info
This commit is contained in:
Just Midi 2021-08-10 00:34:39 +00:00
parent e5ffded0c8
commit 5f8478fd6f
3 changed files with 25 additions and 14 deletions

View File

@ -5,21 +5,17 @@ My vim config written in lua designed for *smol boi minimal vibes*
Most of the code is in separate modules. Each will later be its own true plugin.
## OLD
### TODO
### Install
Install the package manager `paq` to start:
Remove colemak w/ opt-in
```sh
sh -c 'curl -fLo \
"${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
```
`pip3 install --user pynvim``
```vim
:PlugInstall
:UpdateRemotePlugins
git clone --depth=1 https://github.com/savq/paq-nvim.git \
"${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/pack/paqs/start/paq-nvim
```
> /usr/share/dict/words
Install `words`
### Configure
Make sure to set your layout in `keymap/init.lua`
to whichever layout you prefer.

View File

@ -267,6 +267,13 @@ end
-- All layouts: Plugin Bindings
--
-- Package manager
function pm_sync()
require('plugins')
cmd('PaqSync')
end
map('n', '<leader>p', ':lua pm_sync()<CR>', {noremap = true})
-- LSP
function lsp_shortcuts()
local lsp_commands = {

8
lua/plugins/init.lua Normal file
View File

@ -0,0 +1,8 @@
require "paq" {
"savq/paq-nvim"; -- Let Paq manage itself
"neovim/nvim-lspconfig";
"hrsh7th/nvim-compe";
--{"lervag/vimtex", opt=true};
}