Skip to content

Commit

Permalink
fix(keymap): never map <leader> to <Nop>
Browse files Browse the repository at this point in the history
  • Loading branch information
Jint-lzxy committed Jan 20, 2024
1 parent f5e4e72 commit 8cc8263
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lua/core/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,11 @@ end

local leader_map = function()
vim.g.mapleader = " "
vim.api.nvim_set_keymap("n", " ", "", { noremap = true })
vim.api.nvim_set_keymap("x", " ", "", { noremap = true })
-- NOTE:
-- > Uncomment the following if you're using a <leader> other than <Space>, and you wish
-- > to disable advancing one character by pressing <Space> in normal/visual mode.
-- vim.api.nvim_set_keymap("n", " ", "", { noremap = true })
-- vim.api.nvim_set_keymap("x", " ", "", { noremap = true })
end

local gui_config = function()
Expand Down

0 comments on commit 8cc8263

Please sign in to comment.