add config call, before keymaps and plugins setup

This commit is contained in:
ben fleis 2023-02-01 19:04:23 +01:00
parent 32744c3f66
commit db24e451ec
1 changed files with 6 additions and 0 deletions

View File

@ -132,6 +132,12 @@ vim.o.completeopt = 'menuone,noselect'
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
-- Add custom config before keymaps and plugin configs
local has_config, config = pcall(require, 'custom.config')
if has_config then
config()
end
-- Keymaps for better default experience
-- See `:help vim.keymap.set()`
vim.keymap.set({ 'n', 'v' }, '<Space>', '<Nop>', { silent = true })