summaryrefslogtreecommitdiff
path: root/lua/ale/util.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/ale/util.lua')
-rw-r--r--lua/ale/util.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/lua/ale/util.lua b/lua/ale/util.lua
new file mode 100644
index 00000000..98b3bbd9
--- /dev/null
+++ b/lua/ale/util.lua
@@ -0,0 +1,14 @@
+local M = {}
+
+function M.configured_lspconfig_servers()
+ local configs = require 'lspconfig.configs'
+ local keys = {}
+
+ for key, _ in pairs(configs) do
+ table.insert(keys, key)
+ end
+
+ return keys
+end
+
+return M