feat(config): additional mappings config
This commit is contained in:
parent
01af4f41ce
commit
6306ed7293
2 changed files with 14 additions and 1 deletions
6
lua/cosmic/config/mappings.lua
Normal file
6
lua/cosmic/config/mappings.lua
Normal file
|
@ -0,0 +1,6 @@
|
|||
-- Additional remaps
|
||||
--[[
|
||||
local map = require('cosmic.utils').map
|
||||
|
||||
map('i', 'jj', '<esc>', { noremap = true, silent = true })
|
||||
]]
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue