summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/lsp/general.lua
blob: fa28dbcf5373727f76537e58bd84b06d14c19c20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 --no-break-after-operator --column-limit=150 --break-after-table-lb",
                    formatStdin = true
                }
            }
        }
    }
}