From 64c6e1e1e877e66e18992b10fa05d5a5a3284a0d Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sun, 1 Dec 2024 11:12:02 -0800 Subject: [PATCH] chore: Remove unused lazyvim.lsp --- nvim/lua/lib/lazyvim/lsp.lua | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 nvim/lua/lib/lazyvim/lsp.lua diff --git a/nvim/lua/lib/lazyvim/lsp.lua b/nvim/lua/lib/lazyvim/lsp.lua deleted file mode 100644 index 39b6394..0000000 --- a/nvim/lua/lib/lazyvim/lsp.lua +++ /dev/null @@ -1,27 +0,0 @@ --- https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/util/lsp.lua - ----@class lib.lazyvim.lsp -local M = {} - ----@alias lsp.Client.filter {id?:number, bufnr?:number, name?:string, method?:string, filter?:fun(client:lsp.Client):boolean} - ----@param opts? lsp.Client.filter -function M.get_clients(opts) - local ret = {} ---@type vim.lsp.Client[] - - if vim.lsp.get_clients then - ret = vim.lsp.get_clients(opts) - else - ---@diagnostic disable-next-line: deprecated - ret = vim.lsp.get_active_clients(opts) - - if opts and opts.method then - ---@param client vim.lsp.Client - ret = vim.tbl_filter(function(client) - return client.supports_method(opts.method, { bufnr = opts.bufnr }) - end, ret) - end - end - - return opts and opts.filter and vim.tbl_filter(opts.filter, ret) or ret -end