Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

should disable xkbswitch on macOS for statusline #218

Closed
jdhao opened this issue Aug 22, 2023 · 1 comment
Closed

should disable xkbswitch on macOS for statusline #218

jdhao opened this issue Aug 22, 2023 · 1 comment

Comments

@jdhao
Copy link
Owner

jdhao commented Aug 22, 2023

If xkbswitch is not available, then just diable it on statusline.

@jdhao
Copy link
Owner Author

jdhao commented Aug 22, 2023

diff --git i/lua/plugins.lua w/lua/plugins.lua
index 078e1eb..1171295 100644
--- i/lua/plugins.lua
+++ w/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" } }

@jdhao jdhao closed this as completed Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant