diff --git a/README.md b/README.md index b091c6a..9ca2d94 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/lua/keymap/init.lua b/lua/keymap/init.lua index d9a1026..8b54e16 100755 --- a/lua/keymap/init.lua +++ b/lua/keymap/init.lua @@ -267,6 +267,13 @@ end -- All layouts: Plugin Bindings -- +-- Package manager +function pm_sync() + require('plugins') + cmd('PaqSync') +end +map('n', 'p', ':lua pm_sync()', {noremap = true}) + -- LSP function lsp_shortcuts() local lsp_commands = { diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua new file mode 100644 index 0000000..af44810 --- /dev/null +++ b/lua/plugins/init.lua @@ -0,0 +1,8 @@ +require "paq" { + "savq/paq-nvim"; -- Let Paq manage itself + + "neovim/nvim-lspconfig"; + "hrsh7th/nvim-compe"; + + --{"lervag/vimtex", opt=true}; +}