From 0ccd248ef958a8d27e752952a880d004078b4ae9 Mon Sep 17 00:00:00 2001 From: Ashkan Kiani Date: Thu, 14 Nov 2019 17:14:53 -0800 Subject: 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 --- scripts/docgen.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts/docgen.lua') 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}) -- cgit v1.2.3-70-g09d2