diff options
Diffstat (limited to 'nvim/ftplugin')
| -rw-r--r-- | nvim/ftplugin/php.lua | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/nvim/ftplugin/php.lua b/nvim/ftplugin/php.lua deleted file mode 100644 index 8d7c165..0000000 --- a/nvim/ftplugin/php.lua +++ /dev/null @@ -1,11 +0,0 @@ -local copy_indent_macro = "<Esc>^\"_d0" -- clear current indentation - .. "?.<CR>" -- find first non-empty line above - .. "<cmd>noh<CR>" -- clear highlight - .. "^\"yy0" -- copy indentation to y register - .. "<C-o>0" -- return to original line - .. "\"yP" -- paste y register - .. "a" -- enter insert mode - -vim.keymap.set({ "n" }, "o", "o" .. copy_indent_macro, { buffer = 0 }) -vim.keymap.set({ "n" }, "O", "O" .. copy_indent_macro, { buffer = 0 }) -vim.keymap.set({ "i" }, "<CR>", "<CR>" .. copy_indent_macro, { buffer = 0 }) |
