]> git.madduck.net Git - etc/neovim.git/blobdiff - .config/nvim/init.lua

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Integrate vim-plug
[etc/neovim.git] / .config / nvim / init.lua
index 922294052025f279f39af25fadc4e08312a5126f..fcc366a11c502f5f6347a5923e0ac477fcafceb0 100644 (file)
@@ -1 +1,18 @@
 vim.opt.background = 'light'
+
+vim.call "plug#begin"
+
+local Plug = vim.fn['plug#']
+
+
+function hasPlug(plugin)
+  return vim.g.plugs[plugin] ~= nil
+end
+
+vim.call "plug#end"
+
+function prequire(m)
+  local ok, err = pcall(require, m)
+  if not ok then return nil, err end
+  return err
+end