From db24e451ec284ad6da4b093acc0047ae94820324 Mon Sep 17 00:00:00 2001 From: ben fleis Date: Wed, 1 Feb 2023 19:04:23 +0100 Subject: [PATCH] add config call, before keymaps and plugins setup --- init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/init.lua b/init.lua index ac291dad..3952f1cb 100644 --- a/init.lua +++ b/init.lua @@ -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' }, '', '', { silent = true })