diff --git a/plugin/fcitx.vim b/plugin/fcitx.vim index d1eab03..b5b34e8 100644 --- a/plugin/fcitx.vim +++ b/plugin/fcitx.vim @@ -5,7 +5,7 @@ scriptencoding utf-8 " URL: https://www.vim.org/scripts/script.php?script_id=3764 " --------------------------------------------------------------------- " Load Once: -if &cp || exists("g:loaded_fcitx") || !exists('$DISPLAY') || !has('python3') +if &cp || exists("g:loaded_fcitx") || (!exists('$DISPLAY') && !exists('$WAYLAND_DISPLAY')) || !has('python3') finish endif let s:keepcpo = &cpo