From 2dc64c509a5292bd4f0ec4ac11dae4ec5e8c6525 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Fri, 2 Dec 2022 18:28:01 +0100 Subject: vim: more random cleanups --- .vim/lua/plugins.lua | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to '.vim/lua/plugins.lua') 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 = {'⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'}, -- cgit 1.4.1