aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAshkan Kiani <ashkan.k.kiani@gmail.com>2019-11-14 17:14:53 -0800
committerGitHub <noreply@github.com>2019-11-14 17:14:53 -0800
commit0ccd248ef958a8d27e752952a880d004078b4ae9 (patch)
tree67f4afbe9bf69322c0481f00aaff171214487c05 /scripts
parentAdd github actions for docgen (#7) (diff)
downloadnvim-lspconfig-0ccd248ef958a8d27e752952a880d004078b4ae9.tar
nvim-lspconfig-0ccd248ef958a8d27e752952a880d004078b4ae9.tar.gz
nvim-lspconfig-0ccd248ef958a8d27e752952a880d004078b4ae9.tar.bz2
nvim-lspconfig-0ccd248ef958a8d27e752952a880d004078b4ae9.tar.lz
nvim-lspconfig-0ccd248ef958a8d27e752952a880d004078b4ae9.tar.xz
nvim-lspconfig-0ccd248ef958a8d27e752952a880d004078b4ae9.tar.zst
nvim-lspconfig-0ccd248ef958a8d27e752952a880d004078b4ae9.zip
Add ElmLS (#9)
- Initial add of elmLS support - Removes unnecessary vim.schedule_wrap fn calls in elmls & clangd impls - Add automatic installation for elmls and update docs. - Sort server output in the README. - Add commands for elmls for buffer and globally. - [bugfix] Skeleton could've tried to attach even if root_dir was nil TODO: check for updates and warn the user if there are updates when an elm server is started. Co-authored-by: Seth Messer <seth.messer@gmail.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/docgen.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/docgen.lua b/scripts/docgen.lua
index 3b02949e..036a5226 100644
--- a/scripts/docgen.lua
+++ b/scripts/docgen.lua
@@ -41,7 +41,10 @@ end
local writer = io.popen("cat README_preamble.md - > README.md", "w")
-for k, v in pairs(skeleton) do
+local skeleton_keys = vim.tbl_keys(skeleton)
+table.sort(skeleton_keys)
+for _, k in ipairs(skeleton_keys) do
+ local v = skeleton[k]
local tconf = v.template_config
local params = {}
@@ -94,7 +97,7 @@ for k, v in pairs(skeleton) do
## {{template_name}}
{{preamble}}
-```
+```vim
nvim_lsp.{{template_name}}.setup({config})
nvim_lsp#setup("{{template_name}}", {config})