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.lua7
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'}, -- {{{