mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-31 07:09:23 +02:00
[Refactor]: Remove vim-rooter dependency (#1319)
This commit is contained in:
parent
335e707b2a
commit
08c0dca307
2 changed files with 12 additions and 17 deletions
|
@ -4,12 +4,13 @@ function M.is_client_active(name)
|
|||
local clients = vim.lsp.get_active_clients()
|
||||
for _, client in pairs(clients) do
|
||||
if client.name == name then
|
||||
return true
|
||||
return true, client
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
-- FIXME: this should return a list instead
|
||||
function M.get_active_client_by_ft(filetype)
|
||||
if not lvim.lang[filetype] or not lvim.lang[filetype].lsp then
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue