From ca8e5b05498f6bf61542290742fe25aa91af40e2 Mon Sep 17 00:00:00 2001 From: kkard2 Date: Sat, 28 Dec 2024 12:19:57 +0100 Subject: make highlight less visible --- nvim/ftplugin/php.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/ftplugin/php.lua b/nvim/ftplugin/php.lua index 33276d5..a34bb10 100644 --- a/nvim/ftplugin/php.lua +++ b/nvim/ftplugin/php.lua @@ -1,9 +1,9 @@ local copy_indent_macro = "0\"_D" -- clear current line .. "?." -- find first non-empty line above + .. "noh" -- clear highlight .. "^\"yy0" -- copy indentation to y register .. "" -- return to original line .. "\"yp" -- paste y register - .. "noh" -- clear highlight .. "A" -- enter insert mode vim.keymap.set({ "n" }, "o", "o" .. copy_indent_macro, { buffer = 0 }) -- cgit v1.3.1