diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-03-14 21:58:45 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-03-14 21:58:45 +0100 |
commit | 8577c3b7cba714551d3537f3337ee2490bd20106 (patch) | |
tree | e881c2058f73ee5e67c68fcfac0df4b80c7de632 /.config/nvim/lua/lsp/general.lua | |
parent | 7f9c2629c4eb416fcda906d6ad25457b7cff1e22 (diff) |
started moving to pure lua config
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 + } + } + } + } +} |