Skip to content

Commit 31c4431

Browse files
committed
fix(nvim/beacon): lazy load beacon on cursor move
see DanilaMihailov/beacon.nvim#36 (comment)
1 parent b865b78 commit 31c4431

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.config/nvim/fnl/plugins.fnl

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
(def- external-plugins
1212
; main utils
1313
[{:name :berkeleytrue/colorbuddy.nvim}
14-
{:name :danilamihailov/beacon.nvim :config (make-on-load beacon)}
14+
{:name :danilamihailov/beacon.nvim :config (make-on-load beacon) :event :CursorMoved}
1515
{:name :wakatime/vim-wakatime :description "track dev time"}
1616
{:name :acksld/nvim-revj.lua :description "Inverse of J, break args over lines."}
1717
{:name :simrat39/symbols-outline.nvim :description "A tree like view for symbols in Neovim using the Language Server Protocol" :config (make-on-load symbols-outline) :cmd [:SymbolsOutline]}

.config/nvim/fnl/plugins/beacon.fnl

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
require-macros [macros]})
99

1010
; beacon doesn't work with auto-session yet
11-
(defn main [])
12-
; (beacon.setup {}))
11+
(defn main []
12+
(beacon.setup {}))

0 commit comments

Comments
 (0)