Browse Source

Wraps the logic in parenthesis so it works correctly (#1190)

rebuilt 4 năm trước cách đây
mục cha
commit
d700a706b1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lua/keymappings.lua

+ 1 - 1
lua/keymappings.lua

@@ -99,7 +99,7 @@ if vim.fn.has "mac" == 1 then
   keymaps.normal_mode[8][1] = "<A-Right>"
 end
 
-vim.g.mapleader = lvim.leader == "space" and " " or lvim.leader
+vim.g.mapleader = (lvim.leader == "space" and " ") or lvim.leader
 
 -- navigate tab completion with <c-j> and <c-k>
 -- runs conditionally