Przeglądaj źródła

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

rebuilt 4 lat temu
rodzic
commit
d700a706b1
1 zmienionych plików z 1 dodań i 1 usunięć
  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