Skip to content

Commit

Permalink
Map <Space>af to apply PHP fields
Browse files Browse the repository at this point in the history
  • Loading branch information
dietrichm committed Oct 6, 2024
1 parent 3ec6762 commit 0247dac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nvim/.config/nvim/after/ftplugin/php.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ vim.b.delimitMate_matchpairs = '(:),[:],{:}'

vim.cmd.iabbrev('<expr>', 'ns', [[substitute(tr(expand('%:p:h'), '/', '\'), '\v^.*\\\l[^\\]*\\?', '', '')]])
vim.cmd.iabbrev('<expr>', 'cls', [[expand('%:t:r')]])

vim.keymap.set('n', '<Leader>af', [[:PhpFields<CR>]], { buffer = true, silent = true })

0 comments on commit 0247dac

Please sign in to comment.