From a713c086ab476cfb3a624c4b7f03f00acc944fc2 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Tue, 9 Aug 2022 21:10:40 -0700 Subject: [PATCH] :recycle: Reassociated certain commands with espanso --- espanso/base.yml | 6 ++++++ nvim/lua/keybindings.lua | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/espanso/base.yml b/espanso/base.yml index fe8f73f0..190f5d9f 100644 --- a/espanso/base.yml +++ b/espanso/base.yml @@ -81,4 +81,10 @@ matches: - trigger: ":func" replace: "function () {}" + - trigger: ":cll" + replace: "console.log()" + + - trigger: ":cle" + replace: "console.error()" + # And much more! For more information, visit the docs: https://espanso.org/docs/ diff --git a/nvim/lua/keybindings.lua b/nvim/lua/keybindings.lua index 6ff90497..cad840ca 100644 --- a/nvim/lua/keybindings.lua +++ b/nvim/lua/keybindings.lua @@ -32,9 +32,6 @@ vim.cmd[[nmap ]] -- Escape Insert Mode with ii keymap('i', 'ii', '', {}) --- Insert a console.log() -vim.cmd[[ inoremap cll console.log()i]] - -- Alias replace all to shift + S vim.cmd[[nnoremap S :%s///gI]]