diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-03-16 21:54:42 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-03-16 21:54:42 +0100 |
commit | 2b6ae8473e1b0fb8cc0bd16aa8c485a77ee5e847 (patch) | |
tree | 3e9e499480f1694f25a0835877e3ba5e63e403d4 /.config/nvim/lua/_lsp/general.lua | |
parent | c0284168111a9b74761cf2094bdc16fec9006f7b (diff) |
renaming, treesitter buggy
Diffstat (limited to '.config/nvim/lua/_lsp/general.lua')
-rw-r--r-- | .config/nvim/lua/_lsp/general.lua | 15 |
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 + } + } + } + } +} |