From 6a6f8ff5974447fd452f5d8bf20dd090dfdd8ec9 Mon Sep 17 00:00:00 2001 From: jdhao Date: Wed, 23 Aug 2023 00:46:59 +0200 Subject: [PATCH] Update condition for installing vim-xkbswitch --- lua/plugins.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index 078e1eb..1171295 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -222,7 +222,7 @@ packer.startup { use { "nvim-zh/better-escape.vim", event = { "InsertEnter" } } - if vim.g.is_mac then + if vim.g.is_mac and utils.executable('xkbswitch') then use { "lyokha/vim-xkbswitch", event = { "InsertEnter" } } elseif vim.g.is_win then use { "Neur1n/neuims", event = { "InsertEnter" } }