Created
August 8, 2021 05:25
-
-
Save subsetpark/c1e2e9be953058d14e5375de5a71013f to your computer and use it in GitHub Desktop.
A working efm language server config for janet/lua
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A winner is you!