summaryrefslogtreecommitdiff
path: root/ftplugin/lua.lua
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/lua.lua')
-rw-r--r--ftplugin/lua.lua31
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,
- },
- },
-}