summaryrefslogtreecommitdiff
path: root/lua/lsp/efm-general-ls.lua
blob: 8b6af006304495e60046b4836ea207c9dd10a410 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require"lspconfig".efm.setup {
    init_options = {documentFormatting = true},
    filetypes = {"lua"},
    settings = {
        rootMarkers = {".git/"},
        languages = {
            lua = {
                {
                    formatCommand = "lua-format -i --no-keep-simple-function-one-line --column-limit=100",
                    formatStdin = true
                }
            }
        }
    }
}