summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkkard2 <[email protected]>2024-12-28 12:19:57 +0100
committerkkard2 <[email protected]>2024-12-28 12:19:57 +0100
commitca8e5b05498f6bf61542290742fe25aa91af40e2 (patch)
treeee2d68c1a659a429bf3fdd82deb5f3ee78968f48
parentbd9c746f367dfa68ebc7dbd5ef6157e3fd247b90 (diff)
make highlight less visible
-rw-r--r--nvim/ftplugin/php.lua2
1 files changed, 1 insertions, 1 deletions
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 = "<Esc>0\"_D" -- clear current line
.. "?.<CR>" -- find first non-empty line above
+ .. "<cmd>noh<CR>" -- clear highlight
.. "^\"yy0" -- copy indentation to y register
.. "<C-o>" -- return to original line
.. "\"yp" -- paste y register
- .. "<cmd>noh<CR>" -- clear highlight
.. "A" -- enter insert mode
vim.keymap.set({ "n" }, "o", "o" .. copy_indent_macro, { buffer = 0 })