Skip to content

Instantly share code, notes, and snippets.

@subsetpark
Created August 8, 2021 05:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save subsetpark/c1e2e9be953058d14e5375de5a71013f to your computer and use it in GitHub Desktop.
Save subsetpark/c1e2e9be953058d14e5375de5a71013f to your computer and use it in GitHub Desktop.
A working efm language server config for janet/lua
require('lspconfig').efm.setup {
init_options = {
documentFormatting = true,
hover = true,
documentSymbol = true,
codeAction = true, completion = true
},
settings = {
rootMarkers = {".git/"},
languages = {
lua = {{formatCommand = "lua-format -i", formatStdin = true}},
janet = {
{
formatCommand = "jfmt",
formatStdin = true,
lintCommand = "janet -k -s",
lintStdin = true,
lintIgnoreExitCode = true,
lintFormats = {'%f:%l:%c: %m'}
}
}
}
},
filetypes = {'janet', 'lua'}
}
@harryvederci
Copy link

A winner is you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment