diff options
| author | Ariel D'Alessandro <ariel.dalessandro@auto1.com> | 2022-09-26 09:17:39 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <ariel.dalessandro@auto1.com> | 2022-09-26 09:18:14 +0200 |
| commit | b2ea5bb4976ad786a104d5539d47645ddef237a9 (patch) | |
| tree | 63ced30c20f1ca65c23a009d316e5d5cbfdef3c4 /lua/alpha/scratchs/intelephense_symbol.lua | |
| parent | 4457e657255ba071497b30356676a42f6f184cdf (diff) | |
| download | nvim-conf-b2ea5bb4976ad786a104d5539d47645ddef237a9.tar.gz nvim-conf-b2ea5bb4976ad786a104d5539d47645ddef237a9.zip | |
Add gateway graphql queries search
Diffstat (limited to 'lua/alpha/scratchs/intelephense_symbol.lua')
| -rw-r--r-- | lua/alpha/scratchs/intelephense_symbol.lua | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lua/alpha/scratchs/intelephense_symbol.lua b/lua/alpha/scratchs/intelephense_symbol.lua deleted file mode 100644 index 3f039f3..0000000 --- a/lua/alpha/scratchs/intelephense_symbol.lua +++ /dev/null @@ -1,28 +0,0 @@ -local function get_intelephense_buffer() - local clients = vim.lsp.get_active_clients({ name = "intelephense" }) - if #clients == 0 then - return - end - - local intelephense = clients[1] - - local attached_buffers = intelephense.attached_buffers - - for key, val in pairs(attached_buffers) do - if val then - return key - end - end - - return nil -end - -vim.keymap.set({'n'}, '<leader>pc', function () - local buffer = get_intelephense_buffer() - - if buffer == nil then - return - end - - require("telescope.builtin").lsp_workspace_symbols({ bufnr = buffer, query = vim.fn.expand("<cword>") }) -end) |