diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-09-03 12:09:14 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-09-03 12:09:14 +0200 |
| commit | 26f078de81ee51f1fb91a5d4f5dc7837515ab8c0 (patch) | |
| tree | 2fb6aeb92245ca34b111d2536e7a2c4940a06716 /lua/alpha/lsp/attach.lua | |
| parent | 9531ae2ef6c02640d2daa2608dd9665c1643a225 (diff) | |
| download | nvim-conf-26f078de81ee51f1fb91a5d4f5dc7837515ab8c0.tar.gz nvim-conf-26f078de81ee51f1fb91a5d4f5dc7837515ab8c0.zip | |
more updates
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, |