From 8577c3b7cba714551d3537f3337ee2490bd20106 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 14 Mar 2021 21:58:45 +0100 Subject: started moving to pure lua config --- .config/nvim/lua/lsp/general.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .config/nvim/lua/lsp/general.lua (limited to '.config/nvim/lua/lsp/general.lua') 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 + } + } + } + } +} -- cgit v1.2.3-70-g09d2