[Refactor] Allow editing default keymaps (#1213)

This commit is contained in:
kylo252 2021-08-02 23:42:56 +02:00 committed by GitHub
parent e0f0c81ea6
commit 77e283bd9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 246 additions and 171 deletions

View file

@ -42,11 +42,6 @@ end
require("settings").load_commands()
autocmds.define_augroups(lvim.autocommands)
local keymap = require "utils.keymap"
local default_keymaps = require "keymappings"
keymap.load(default_keymaps.keymaps, default_keymaps.opts)
keymap.load(lvim.keys, default_keymaps.opts)
local plugins = require "plugins"
local plugin_loader = require("plugin-loader").init()
plugin_loader:load { plugins, lvim.plugins }
@ -73,6 +68,8 @@ if lsp_settings_status_ok then
}
end
require("keymappings").setup()
-- TODO: these guys need to be in language files
-- if lvim.lang.emmet.active then
-- require "lsp.emmet-ls"