]> git.madduck.net Git - etc/neovim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Clear highlights with <Esc>
authormartin f. krafft <madduck@madduck.net>
Wed, 9 Apr 2025 12:36:28 +0000 (14:36 +0200)
committermartin f. krafft <madduck@madduck.net>
Fri, 11 Apr 2025 18:48:29 +0000 (20:48 +0200)
.config/nvim/emojis.vim [new file with mode: 0644]
.config/nvim/init.lua
.config/nvim/keymaps.lua
.gitignore.d/neovim

diff --git a/.config/nvim/emojis.vim b/.config/nvim/emojis.vim
new file mode 100644 (file)
index 0000000..d62de21
--- /dev/null
@@ -0,0 +1,2 @@
+iab =→ ➬
+iab _tu 👍️
index 28facf109f1201a9edae07aa2addd20429ac7e6e..cd3df604a634770023ad937ff9a8f5ca11c14c11 100644 (file)
@@ -6,6 +6,7 @@ vim.g.netrw_home = vim.g.statedir .. "netrw"
 
 vim.cmd.runtime 'options.lua'
 vim.cmd.runtime 'keymaps.lua'
+vim.cmd.runtime 'emojis.vim'
 
 vim.cmd 'packadd! gnupg'
 
index 46f3cb7f0bdae236ad9217e6ee55a7ae13c881bb..46bb87f398714f1608f7828ea774bb8e7fd39245 100644 (file)
@@ -4,3 +4,5 @@ vim.keymap.set({'n', 'v', 'o', 'i'}, '<F1>', '<Esc>')
 -- toggle paste mode with F2
 vim.keymap.set({'n', 'v', 'o', 'i'}, '<F2>', ':set invpaste<CR>')
 
+-- clear highlights on search when pressing <Esc> in normal mode
+vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
index b9f3b542d42ee776018a63da21c23157fc8edb4e..3b3a2ed3382443507371a3b8ebccfe5a46e2b2a1 100644 (file)
@@ -1,5 +1,6 @@
 *
 !/.config/nvim/autoload/plug.vim
+!/.config/nvim/emojis.vim
 !/.config/nvim/init.lua
 !/.config/nvim/keymaps.lua
 !/.config/nvim/options.lua