From 7619e6e50f7cba5c76fdf6b6b87a5b05696953e9 Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Fri, 22 Mar 2024 10:19:39 -0700 Subject: [PATCH] map leader in settings instead of keybindings --- lazy-lock.json | 1 + lua/keybinds.lua | 2 -- lua/settings.lua | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lazy-lock.json b/lazy-lock.json index c98dc39..cab6228 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -24,6 +24,7 @@ "nvim-ts-autotag": { "branch": "main", "commit": "531f48334c422222aebc888fd36e7d109cb354cd" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "7ab799a9792f7cf3883cf28c6a00ad431f3d382a" }, "nvim-web-devicons": { "branch": "master", "commit": "cb0c967c9723a76ccb1be0cc3a9a10e577d2f6ec" }, + "plenary.nvim": { "branch": "master", "commit": "f7adfc4b3f4f91aab6caebf42b3682945fbc35be" }, "telescope.nvim": { "branch": "master", "commit": "3b8399c27380d09c44f55c8fbeff0bd7a4ed3f8d" }, "vim-bbye": { "branch": "master", "commit": "25ef93ac5a87526111f43e5110675032dbcacf56" }, "vim-illuminate": { "branch": "master", "commit": "305bf07b919ac526deb5193280379e2f8b599926" }, diff --git a/lua/keybinds.lua b/lua/keybinds.lua index e2aa7a3..550ae3b 100644 --- a/lua/keybinds.lua +++ b/lua/keybinds.lua @@ -2,8 +2,6 @@ local opts = { noremap = true, silent = true } local map = vim.api.nvim_set_keymap map('', '', '', opts) -vim.g.mapleader = ' ' -vim.g.maplocalleader = ' ' -- Window Navigation without needing first map('n', '', 'h', opts) diff --git a/lua/settings.lua b/lua/settings.lua index 34ee344..4ef9cb6 100644 --- a/lua/settings.lua +++ b/lua/settings.lua @@ -1,3 +1,6 @@ +vim.g.mapleader = ' ' +vim.g.maplocalleader = ' ' + local set = vim.opt set.clipboard = 'unnamedplus'