mirror of
https://github.com/itme-brain/nvim.git
synced 2026-05-08 15:10:13 -04:00
updated compat
This commit is contained in:
parent
62d06a8bdc
commit
23fb66df0b
7 changed files with 159 additions and 87 deletions
|
|
@ -201,9 +201,11 @@ return {
|
|||
local function get_all_servers()
|
||||
local servers = {}
|
||||
local lsp_path = vim.fn.stdpath('data') .. '/lazy/nvim-lspconfig/lsp'
|
||||
local files = vim.fn.globpath(lsp_path, '*.lua', false, true)
|
||||
local files = vim.fn.readdir(lsp_path, function(name)
|
||||
return name:sub(-4) == '.lua'
|
||||
end)
|
||||
for _, file in ipairs(files) do
|
||||
local server = vim.fn.fnamemodify(file, ':t:r')
|
||||
local server = file:sub(1, -5)
|
||||
table.insert(servers, server)
|
||||
end
|
||||
return servers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue