summaryrefslogtreecommitdiff
path: root/ftplugin/lua.lua
diff options
context:
space:
mode:
authorJacek Kiedrowski <[email protected]>2021-07-05 23:26:25 +0100
committerGitHub <[email protected]>2021-07-05 23:26:25 +0100
commit5b497747448b3946675f7361c9667bb0dc1da11a (patch)
treef9f08a2729f7f3134675114ac97e128a8be08ee7 /ftplugin/lua.lua
parent64e544b56114f7b93a56814067caa28c83cfaec4 (diff)
parenta469c710bfc01f291df68dba40464caaa2b496da (diff)
Merge branch 'ChristianChiarulli:master' into master
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,
- },
- },
-}