diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-10-17 23:33:57 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-10-17 23:33:57 +0200 |
commit | e16303d85286e5661093e2029d54593e3a3481ec (patch) | |
tree | 2e13945842f7286d91c63035f7e73f91653d675f /fnl/plugins.fnl | |
parent | f3432fc8f42246ac26f90146f13045377bc3899e (diff) |
Add cmds for plugins to lazy load them
Diffstat (limited to 'fnl/plugins.fnl')
-rw-r--r-- | fnl/plugins.fnl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fnl/plugins.fnl b/fnl/plugins.fnl index 13da672..c0195bd 100644 --- a/fnl/plugins.fnl +++ b/fnl/plugins.fnl @@ -76,7 +76,7 @@ (require :config.trouble))}]) (def misc [{1 :nvim-orgmode/orgmode - :event :BufReadPre + :event :BufRead :config (fn [] (require :config.orgmode))} {1 :moll/vim-bbye :event :BufRead} @@ -106,11 +106,12 @@ :config (fn [] (require :config.flit))} {1 :ahmedkhalf/project.nvim + :event :VimEnter :requires :nvim-telescope/telescope.nvim :config (fn [] (require :config.project))} {1 :windwp/nvim-spectre - :event :InsertEnter + :cmd [:Replace :ReplaceWord :ReplaceInBuf] :config (fn [] (require :config.spectre))} {1 :junegunn/vim-slash @@ -118,7 +119,7 @@ :config (fn [] (require :config.vim-slash))} {1 :ThePrimeagen/harpoon - :event :InsertEnter + :cmd [:HapoonAdd :HapoonNext :HapoonPrev :HarpoonUI] :requires :nvim-telescope/telescope.nvim :config (fn [] (require :config.harpoon))}]) @@ -133,7 +134,7 @@ (def snippets [:rafamadriz/friendly-snippets]) (def text [{1 :numToStr/Comment.nvim - :event :InsertEnter + :cmd [:CommentNormal :CommentVisual] :config (fn [] (require :config.comment))} {1 :JoosepAlviste/nvim-ts-context-commentstring :event :BufReadPost} |