siduck / dotfiles

dotfiles for my beautiful rices!
889 stars 75 forks source link

Can't overwrite mappings.terminal.esc_termmode and esc_hide_termmode #13

Closed brutusmcforce closed 2 years ago

brutusmcforce commented 2 years ago

Hi! I am trying to overwrite esc_termmode and esc_hide_termmode since I am swedish and "jk" is a super common letter combination. However, my new mapping does not work. Only the "jk" and "JK" mappings from the default config work. Overwriting other things, like the cheatsheet mapping, works fine.

I would like to be able to remove the mappings altogether, or at least set it to something I would never type.

Here's my config: `local M = {}

local plugin_conf = require "custom.plugins.configs" local userPlugins = require "custom.plugins"

M.plugins = { status = { colorizer = true, },

default_plugin_config_replace = { nvim_treesitter = plugin_conf.treesitter, nvim_tree = plugin_conf.nvimtree, },

options = { lspconfig = { setup_lspconf = "custom.plugins.lspconfig", } }, install = userPlugins, }

M.mappings = { misc = { cheatsheet = "fu" },

terminal = { esc_termmode = { "jj" }, esc_hide_termmode = { "JJ" }, }, }

M.ui = { theme = "monekai", }

return M`

brutusmcforce commented 2 years ago

I am terribly sorry, I wrote in the wrong tab...