mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-17 20:26:26 +00:00
Remove old lspconfig hack
This commit is contained in:
parent
2710af9160
commit
80ad56a2b1
@ -6,12 +6,7 @@ local function disable_formatter_filetypes_for_existing_servers(sources, preserv
|
|||||||
local server_filetypes = {}
|
local server_filetypes = {}
|
||||||
utils.try_require("lspconfig", function(lsp_config)
|
utils.try_require("lspconfig", function(lsp_config)
|
||||||
local available_servers
|
local available_servers
|
||||||
if lsp_config["util"] and lsp_config.util["available_servers"] then
|
available_servers = lsp_config.util.available_servers()
|
||||||
available_servers = lsp_config.util.available_servers()
|
|
||||||
else
|
|
||||||
-- HACK: For lspconfig versions lower than 0.1.4, which is required for nvim <0.7.0
|
|
||||||
available_servers = lsp_config.available_servers()
|
|
||||||
end
|
|
||||||
vim.tbl_map(function(server)
|
vim.tbl_map(function(server)
|
||||||
if lsp_config[server].filetypes ~= nil then
|
if lsp_config[server].filetypes ~= nil then
|
||||||
vim.list_extend(server_filetypes, lsp_config[server].filetypes)
|
vim.list_extend(server_filetypes, lsp_config[server].filetypes)
|
||||||
|
Loading…
Reference in New Issue
Block a user