diff options
| author | Robert Günzler <r@gnzler.io> | 2022-12-02 18:28:01 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2022-12-02 18:31:47 +0100 |
| commit | 2dc64c509a5292bd4f0ec4ac11dae4ec5e8c6525 (patch) | |
| tree | bc2e077288b54e13d5ac560bb12ff208d71039fb /.vim/lua/plugins.lua | |
| parent | d58b8d7030bb2e8cdfd7b3ce8239fe3d5d33ba60 (diff) | |
vim: more random cleanups
Diffstat (limited to '.vim/lua/plugins.lua')
| -rw-r--r-- | .vim/lua/plugins.lua | 22 |
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 = {'⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'}, |