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]]