mappings: Allow to remove plugin mappings in chadrc

This enables us to disable a plugin mappings individually

for eg:
  M.mappings.plugins = {
      telelscope = {
          find_hiddenfiles = false
      }
  }

  This will disable the telelscope find_hiddenfiles mapping.

It's also helpful when we want to use the mapping used by find_hiddenfiles for something else
This commit is contained in:
Akianonymus authored and siduck committed 2022-01-22 14:53:26 +05:30
1 parent 4c85f25a09
commit bad06dc44f
2 files changed
+22 -11

No files matched your search

+1 -1
View File
@@ -166,7 +166,7 @@ M.mappings = {
}
-- plugins related mappings
-- To disable a mapping, equate the variable to "" or false or nil in chadrc
M.mappings.plugins = {
bufferline = {
next_buffer = "<TAB>",