From 4f112819b1251ac1d86439fa1b8c093b9c33d847 Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Wed, 15 Feb 2023 15:19:01 -0500 Subject: [PATCH] move leader to top of file --- init.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index 5fbe21d..c690893 100644 --- a/init.lua +++ b/init.lua @@ -1,3 +1,9 @@ +-- Set as the leader key +-- See `:help mapleader` +-- NOTE: Must happen before plugins are required (otherwise wrong leader will be used) +vim.g.mapleader = ' ' +vim.g.maplocalleader = ' ' + -- Install package manager -- https://github.com/folke/lazy.nvim -- `:help lazy.nvim.txt` for more info @@ -107,11 +113,6 @@ vim.cmd [[colorscheme onedark]] vim.o.completeopt = 'menuone,noselect' -- [[ Basic Keymaps ]] --- Set as the leader key --- See `:help mapleader` --- NOTE: Must happen before plugins are required (otherwise wrong leader will be used) -vim.g.mapleader = ' ' -vim.g.maplocalleader = ' ' -- Keymaps for better default experience -- See `:help vim.keymap.set()`