diff --git a/init.lua b/init.lua index 86ed313a..90128821 100644 --- a/init.lua +++ b/init.lua @@ -193,6 +193,13 @@ vim.keymap.set('n', '', '', { desc = 'Move focus to the upper win -- [[ Basic Autocommands ]] -- See `:help lua-guide-autocommands` +vim.api.nvim_create_autocmd('FileType', { + pattern = 'php', + callback = function() + vim.opt_local.iskeyword:prepend '$' + end, +}) + -- Highlight when yanking (copying) text -- Try it with `yap` in normal mode -- See `:help vim.highlight.on_yank()`