summaryrefslogtreecommitdiff
path: root/lv-settings.lua
diff options
context:
space:
mode:
authorIan S. Pringle <[email protected]>2021-06-26 14:31:40 -0400
committerGitHub <[email protected]>2021-06-26 14:31:40 -0400
commit2cf8580eb79b24a3d565aba8bb3305417811f2c8 (patch)
treeab370fb21d3144fda0597958a803582efade6fb1 /lv-settings.lua
parent60175ee0d67a12cc617c68aad983ed4e12d98ad9 (diff)
Updated where leader key is set and made var in lv-settings (#474)
- Setting leader-key in the init.lua file. You want to set the leader as soon as possible so that it's the same everywhere. With the leader being set in the lua/lv-which-key/init.lua it resulted in mappings that used `<leader>` in the lua/keymappings.lua mapping the the defualt leader-key of `\` - Added the O.leader_key to the lv-settings.lua file so the leader-key can be set there, which seems to make more sense. - Added handling for when the leader-key is `<Space>`. This could be made more robust to include other special keys, but I don't think many/any of the other special keys would be used as a leader-key (ie <BS>, <CR>, <Tab>, <Esc>, <Up|Down|Right|Left>, etc.) Co-authored-by: Christian Chiarulli <[email protected]>
Diffstat (limited to 'lv-settings.lua')
-rw-r--r--lv-settings.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lv-settings.lua b/lv-settings.lua
index 2d96715d..5425c9a7 100644
--- a/lv-settings.lua
+++ b/lv-settings.lua
@@ -15,6 +15,7 @@ O.wrap_lines = false
O.timeoutlen = 100
O.document_highlight = true
O.extras = true
+O.leader_key = ' '
-- dashboard
-- O.dashboard.custom_header = {""}