From 02459e81bebfb9ef156aa05bf0b31159767b06da Mon Sep 17 00:00:00 2001 From: Matt Blacker Date: Thu, 4 Jul 2024 18:10:04 +1000 Subject: [PATCH] Add in php keyword --- init.lua | 7 +++++++ 1 file changed, 7 insertions(+) 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()`