From a0d94be4f339f57e6964b87c3d4db90722a42106 Mon Sep 17 00:00:00 2001 From: ray Date: Mon, 8 Dec 2025 00:18:47 +0000 Subject: [PATCH] add keyword settings --- lua/settings.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/settings.lua b/lua/settings.lua index 940d399..2d4ce4e 100644 --- a/lua/settings.lua +++ b/lua/settings.lua @@ -16,6 +16,10 @@ vim.opt.completeopt = { 'menu', 'menuone', 'noselect' } -- Spelling vim.opt.spelllang = { 'en_gb' } +-- Keyword characters (add $ for PHP/shell variables, - for CSS/HTML/config files) +vim.opt.iskeyword:append('$') +vim.opt.iskeyword:append('-') + -- Visuals vim.opt.showbreak = ' ↳' vim.opt.listchars = {