summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/lsp/general.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/lsp/general.lua')
-rw-r--r--.config/nvim/lua/lsp/general.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/.config/nvim/lua/lsp/general.lua b/.config/nvim/lua/lsp/general.lua
new file mode 100644
index 0000000..fa28dbc
--- /dev/null
+++ b/.config/nvim/lua/lsp/general.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
+ }
+ }
+ }
+ }
+}