From 26f078de81ee51f1fb91a5d4f5dc7837515ab8c0 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Sun, 3 Sep 2023 12:09:14 +0200 Subject: more updates --- lua/alpha/lsp/attach.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lua/alpha/lsp/attach.lua') diff --git a/lua/alpha/lsp/attach.lua b/lua/alpha/lsp/attach.lua index fe71a2a..84212a6 100644 --- a/lua/alpha/lsp/attach.lua +++ b/lua/alpha/lsp/attach.lua @@ -1,6 +1,12 @@ local telescope_mapper = require "alpha.telescope.mappings" -local filetype_attach = setmetatable({}, { +local filetype_attach = setmetatable({ + php = function(client, bufnr) + vim.api.nvim_buf_create_user_command(bufnr, "LspPhpactorReindex", function() + vim.lsp.buf_notify(bufnr, "phpactor/index/reindex", {}) + end, {}) + end, +}, { __index = function() return function() end end, -- cgit v1.2.3