fix: keep user provided values of mapleader and maplocalleader

If the user provides a value, keep it, otherwise set to <space> and \ repectively.

Fixes: 2668
This commit is contained in:
aarondill 2024-03-07 13:52:42 -06:00
parent c0ad2209b6
commit 4d73429014

View file

@ -1,6 +1,6 @@
-- This file is automatically loaded by plugins.core -- This file is automatically loaded by plugins.core
vim.g.mapleader = " " vim.g.mapleader = vim.g.mapleader or " "
vim.g.maplocalleader = "\\" vim.g.maplocalleader = vim.g.maplocalleader or "\\"
-- Enable LazyVim auto format -- Enable LazyVim auto format
vim.g.autoformat = true vim.g.autoformat = true