mappings: Only set mappings if the plugin is enabled
format files fix some lsp warnings
This commit is contained in:
parent
d7b97dfe63
commit
f4655e13ec
5 changed files with 65 additions and 45 deletions
|
|
@ -38,14 +38,4 @@ local options = {
|
|||
|
||||
options = require("core.utils").load_override(options, "folke/which-key.nvim")
|
||||
|
||||
local utils = require "core.utils"
|
||||
|
||||
local mappings = utils.load_config().mappings
|
||||
local mapping_groups = { groups = vim.deepcopy(mappings.groups) }
|
||||
|
||||
mappings.disabled = nil
|
||||
mappings.groups = nil
|
||||
|
||||
utils.load_mappings(mapping_groups)
|
||||
|
||||
wk.setup(options)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue