general-ls.lua 459 B

123456789101112131415
  1. require"lspconfig".efm.setup {
  2. init_options = {documentFormatting = true},
  3. filetypes = {"lua"},
  4. settings = {
  5. rootMarkers = {".git/"},
  6. languages = {
  7. lua = {
  8. {
  9. formatCommand = "lua-format -i --no-keep-simple-function-one-line --no-break-after-operator --column-limit=150 --break-after-table-lb",
  10. formatStdin = true
  11. }
  12. }
  13. }
  14. }
  15. }