summary refs log tree commit diff
path: root/.vim/lua/plugins.lua
diff options
context:
space:
mode:
Diffstat (limited to '.vim/lua/plugins.lua')
-rw-r--r--.vim/lua/plugins.lua22
1 files changed, 8 insertions, 14 deletions
diff --git a/.vim/lua/plugins.lua b/.vim/lua/plugins.lua
index 287d08f..1293989 100644
--- a/.vim/lua/plugins.lua
+++ b/.vim/lua/plugins.lua
@@ -1,12 +1,12 @@
 -- vim: fdm=marker fdl=0
 ---@diagnostic disable: undefined-global
-
 -- load by calling `lua require('plugins')` from init.vim
 
 local g = vim.g
 
 -- force packer into a system directory {{{
 if not vim.fn.filewritable(vim.fn.stdpath('cache')) == 2 then
+-- TODO: what does this check for?
   return
 end
 
@@ -51,11 +51,6 @@ if not (vim.fn.empty(vim.fn.glob(compilepath)) > 0) then
 end
 
 require('packer').startup({function()
-  -- run sync() if compilepath doesn't exist (this usually means first start)
-  if packer_bootstrapped then
-    require('packer').sync()
-  end
-
   -- auto-compile on save -- {{{
   do
     vim.api.nvim_create_user_command('PackerRecompile',
@@ -78,6 +73,12 @@ require('packer').startup({function()
     })
   end -- }}}
 
+  -- run sync() if packer was just bootstrapped, usually means fresh install
+  if packer_bootstrapped then
+    -- require('packer').sync()
+    vim.cmd.PackerRecompile()
+  end
+
   -- disable built-in plugins
   disable_distribution_plugins()
 
@@ -246,8 +247,6 @@ require('packer').startup({function()
     'zig',
 
     'org',
-    'norg_meta',
-    'norg_table',
     'hare',
     'gotmpl',
   } -- }}}
@@ -1279,12 +1278,7 @@ require('packer').startup({function()
       end
     end} -- }}}
 
-  use {'~/devel/projects/k2', rtp = 'nvim', module = {'k2'}, cmd = {'K2'}, -- {{{
-    config = function()
-      require('k2').setup()
-    end} -- }}}
-
-  use {'~/devel/projects/spinner.nvim', module = {'spinner'}, -- {{{
+  use {'https://git.sr.ht/~robertgzr/spinner.nvim', module = {'spinner'}, -- {{{
     config = function()
       require('spinner').setup {
         spinner = {'⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'},