mirror of
https://github.com/He4eT/dotfiles.git
synced 2026-05-04 23:47:23 +00:00
nvim: use Enter key as a second leader
This commit is contained in:
parent
77030863b9
commit
1c72643007
1 changed files with 2 additions and 1 deletions
|
|
@ -1,10 +1,11 @@
|
||||||
-- Leader keymaps
|
-- Leader keymaps
|
||||||
vim.g.mapleader = ' '
|
vim.g.mapleader = ' '
|
||||||
vim.g.maplocalleader = ' '
|
vim.g.maplocalleader = ' '
|
||||||
|
vim.keymap.set({'n', 'v'}, '<CR>', ' ', { silent = true, remap = true })
|
||||||
|
|
||||||
-- Install package manager
|
-- Install package manager
|
||||||
-- https://github.com/folke/lazy.nvim
|
-- https://github.com/folke/lazy.nvim
|
||||||
--`:help lazy.nvim.txt` for more info
|
-- See `:help lazy.nvim.txt` for more info
|
||||||
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
|
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
|
||||||
if not vim.loop.fs_stat(lazypath) then
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
vim.fn.system {
|
vim.fn.system {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue