feat(config): additional mappings config

This commit is contained in:
Matt Leong 2021-10-25 08:02:19 -07:00
parent 01af4f41ce
commit 6306ed7293
2 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,6 @@
-- Additional remaps
--[[
local map = require('cosmic.utils').map
map('i', 'jj', '<esc>', { noremap = true, silent = true })
]]

View file

@ -7,6 +7,13 @@ require('cosmic.editor')
do
local ok, err = pcall(require, 'cosmic.config.editor')
if not ok then
error(string.format('Error loading custor editor settings...\n\n%s', err))
error(string.format('Error loading custom editor settings...\n\n%s', err))
end
end
do
local ok, err = pcall(require, 'cosmic.config.mappings')
if not ok then
error(string.format('Error loading custom mapping settings...\n\n%s', err))
end
end