andreyorst / plug.kak

Plugin manager for Kakoune
MIT License
197 stars 18 forks source link

defer block not works as expected #94

Closed TuM0xA-S closed 3 years ago

TuM0xA-S commented 3 years ago

i have configuration for fzf.kak(Kakoune v2020.09.01)

plug "andreyorst/fzf.kak" %{
    map global normal \' ': fzf-mode<ret>'  # works
} defer fzf %{
    set-option global fzf_file_command fd # not works
}

expected:

option fzf_file_command have value fd

actual:

option fzf_file_command not setted and have default value find problem also if set option after kakoune loaded it works. am i doing something wrong?

andreyorst commented 3 years ago

because fzf_file_command is in fzf-file module, not in fzf module.

plug "andreyorst/fzf.kak" %{
    map global normal \' ': fzf-mode<ret>'  # works
} defer fzf-file %{
    set-option global fzf_file_command fd # not works
}
TuM0xA-S commented 3 years ago

thx