map leader in settings instead of keybindings

This commit is contained in:
Michael Peters 2024-03-22 10:19:39 -07:00
parent 4ed06dd050
commit 7619e6e50f
3 changed files with 4 additions and 2 deletions

View File

@ -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" },

View File

@ -2,8 +2,6 @@ local opts = { noremap = true, silent = true }
local map = vim.api.nvim_set_keymap
map('', '<Space>', '<Nop>', opts)
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
-- Window Navigation without needing <C-w> first
map('n', '<C-h>', '<C-w>h', opts)

View File

@ -1,3 +1,6 @@
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
local set = vim.opt
set.clipboard = 'unnamedplus'