summary refs log tree commit diff
path: root/.vim
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2021-08-02 13:54:38 +0200
committerRobert Günzler <r@gnzler.io>2021-08-02 13:54:38 +0200
commita640482e61fa6afcbdb6e974ef9b0bb956a9649c (patch)
tree700049aa97e92ed5099f2bb5039c9b33efaa5528 /.vim
parente85d6410af991ec81b847541a48026ae973cde7e (diff)
vim: auto-compile plugins.lua
Diffstat (limited to '.vim')
-rw-r--r--.vim/init.lua2
-rw-r--r--.vim/lua/plugins.lua1
2 files changed, 1 insertions, 2 deletions
diff --git a/.vim/init.lua b/.vim/init.lua
index d56d1c7..43a5d6d 100644
--- a/.vim/init.lua
+++ b/.vim/init.lua
@@ -94,7 +94,7 @@ u.augroup2 {
   },
   c_makeprg = {{'BufRead', '*.c', [[ set makeprg=ninja\ -C\ build ]]}},
   open_qf = {{'QuickFixCmdPost', '*', [[ :clist ]]}},
-  -- packer_auto_compile = {{'BufWritePost', 'plugins.lua', [[ source <afile> | PackerCompile ]]}},
+  packer_auto_compile = {{'BufWritePost', 'plugins.lua', [[ PackerCompile ]]}},
   commentstring = {
     {'FileType', 'i3config', [[ setlocal commentstring=#\ %s ]]},
     {'FileType', 'jsonc', [[ setlocal commentstring=//\ %s ]]},
diff --git a/.vim/lua/plugins.lua b/.vim/lua/plugins.lua
index cb8bdb1..425c2ca 100644
--- a/.vim/lua/plugins.lua
+++ b/.vim/lua/plugins.lua
@@ -1,7 +1,6 @@
 -- vim: foldenable
 -- load by calling `lua require('plugins')` from your init.vim
 local g = vim.g
-local u = require('utils')
 
 -- force packer into a system directory
 local sysdata = vim.fn.stdpath('data_dirs')[1]