diff options
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/ftplugin/php.lua | 2 |
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 }) |
