diff options
author | Rafael <[email protected]> | 2021-07-05 20:01:19 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-05 16:01:19 -0400 |
commit | 71c5cb4f0be89d3a175e99b0c2ebc5e55178e8a9 (patch) | |
tree | 941ed16b7e2f84ec45ce9b2c4a3d6d638cf584a7 /ftplugin/lua.lua | |
parent | 9d399314d4ef9b05df738dda016ea52ec2e85823 (diff) |
(feat) use neoformat as the defalt format option (#715)
Diffstat (limited to 'ftplugin/lua.lua')
-rw-r--r-- | ftplugin/lua.lua | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/ftplugin/lua.lua b/ftplugin/lua.lua index f3c3ac50..32c24e80 100644 --- a/ftplugin/lua.lua +++ b/ftplugin/lua.lua @@ -40,34 +40,3 @@ if O.lang.lua.autoformat then }, } end - -local lua_arguments = {} - -local luaFormat = { - formatCommand = "lua-format -i --no-keep-simple-function-one-line --column-limit=80", - formatStdin = true, -} - -local lua_fmt = { - formatCommand = "luafmt --indent-count 2 --line-width 120 --stdin", - formatStdin = true, -} - -if O.lang.lua.formatter == "lua-format" then - table.insert(lua_arguments, luaFormat) -elseif O.lang.lua.formatter == "lua-fmt" then - table.insert(lua_arguments, lua_fmt) -end - -require("lspconfig").efm.setup { - -- init_options = {initializationOptions}, - cmd = { DATA_PATH .. "/lspinstall/efm/efm-langserver" }, - init_options = { documentFormatting = true, codeAction = false }, - filetypes = { "lua" }, - settings = { - rootMarkers = { ".git/" }, - languages = { - lua = lua_arguments, - }, - }, -} |