diff options
| author | Robert Günzler <r@gnzler.io> | 2022-09-28 18:49:23 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2022-09-28 18:49:23 +0200 |
| commit | ebfef035c6670ea79bbf6f1a6be210924fa33e91 (patch) | |
| tree | e01209c09901bff2fc9975b092251c49bf70a262 /.vim/lua/plugins.lua | |
| parent | 188ebccd6278a05571aee756841ea0f337ea7179 (diff) | |
vim: make the alpha keybind work with lazy-load
Diffstat (limited to '.vim/lua/plugins.lua')
| -rw-r--r-- | .vim/lua/plugins.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.vim/lua/plugins.lua b/.vim/lua/plugins.lua index d3c9646..2c0bea5 100644 --- a/.vim/lua/plugins.lua +++ b/.vim/lua/plugins.lua @@ -998,7 +998,10 @@ require('packer').startup({function() } end} -- }}} - use {'goolord/alpha-nvim', cmd = 'Alpha', module = {'alpha'}, -- {{{ + use {'goolord/alpha-nvim', cmd = {'Alpha'}, module = {'alpha'}, -- {{{ + setup = function() + vim.keymap.set('n', '<leader>a', function() vim.cmd [[Alpha]] end, {desc='alpha'}) + end, config = function() local MAX_WIDTH = 80 local alpha = require('alpha') @@ -1175,8 +1178,6 @@ require('packer').startup({function() group = group, }) end - - vim.keymap.set('n', '<leader>a', function() vim.cmd [[Alpha]] end, {desc='alpha'}) end} -- }}} use {'ruifm/gitlinker.nvim', module = {'gitlinker'}, -- {{{ |