summaryrefslogtreecommitdiff
path: root/lua/lsp/efm-general-ls.lua
diff options
context:
space:
mode:
authorChris <[email protected]>2021-03-17 14:15:20 -0400
committerChris <[email protected]>2021-03-17 14:15:20 -0400
commitb29ef8fa58b5214ed835f7711243e0ba492aebce (patch)
tree02e47ce9e6fb8fc387efc8b875b721c2cc899c85 /lua/lsp/efm-general-ls.lua
parentc3ec305ccbd1b1fd54eabb748c1f3083dd7b8ca2 (diff)
bug fix for matchup
Diffstat (limited to 'lua/lsp/efm-general-ls.lua')
-rw-r--r--lua/lsp/efm-general-ls.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/lua/lsp/efm-general-ls.lua b/lua/lsp/efm-general-ls.lua
new file mode 100644
index 00000000..fa28dbcf
--- /dev/null
+++ b/lua/lsp/efm-general-ls.lua
@@ -0,0 +1,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
+ }
+ }
+ }
+ }
+}