diff options
Diffstat (limited to 'lua/alpha/lsp/attach.lua')
| -rw-r--r-- | lua/alpha/lsp/attach.lua | 8 |
1 files changed, 7 insertions, 1 deletions
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, |