diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-01-04 11:46:43 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2023-01-04 11:46:43 +0100 |
| commit | f0ae0454ee07b2062675e2d0cbf30dbffdc41faf (patch) | |
| tree | 9cb663610cc34c231732ab25feb30c2497a3cad6 | |
| parent | da9235af861e30af135b931e892371b504775896 (diff) | |
| download | vis-lspc-f0ae0454ee07b2062675e2d0cbf30dbffdc41faf.tar.gz vis-lspc-f0ae0454ee07b2062675e2d0cbf30dbffdc41faf.zip | |
fix check and test make targets and run make format
The make targets use a shell loop which does not fail if one of
the iterations fail.
| -rw-r--r-- | Makefile | 4 | ||||
| -rw-r--r-- | supported-servers.lua | 5 |
2 files changed, 6 insertions, 3 deletions
@@ -10,10 +10,10 @@ check-luacheck: luacheck --globals=vis -- $(LUA_FILES) check-format: - for lf in $(LUA_FILES); do tools/check-format "$${lf}"; done + set -e; for lf in $(LUA_FILES); do tools/check-format "$${lf}"; done format: lua-format -i $(LUA_FILES) test: - for tf in $(TEST_FILES); do "$$tf"; done + set -e; for tf in $(TEST_FILES); do "$$tf"; done diff --git a/supported-servers.lua b/supported-servers.lua index c5017f2..4f77a3f 100644 --- a/supported-servers.lua +++ b/supported-servers.lua @@ -7,7 +7,10 @@ local source_path = source_str:match('(.*/)') local lspc = dofile(source_path .. 'lspc.lua') local clangd = {name = 'clangd', cmd = 'clangd'} -local typescript = { name = 'typescript', cmd = 'typescript-language-server --stdio' } +local typescript = { + name = 'typescript', + cmd = 'typescript-language-server --stdio', +} return { cpp = clangd, |
