From fe6af3b8f2ad8e4e00acee9de81030a67849af36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Fri, 17 Feb 2023 12:59:51 +0100 Subject: [PATCH] tweak lua formatting options --- modules/programs/nvim/init.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/programs/nvim/init.lua b/modules/programs/nvim/init.lua index 18cd345..200753e 100644 --- a/modules/programs/nvim/init.lua +++ b/modules/programs/nvim/init.lua @@ -195,6 +195,15 @@ lspconfig.sumneko_lua.setup({ telemetry = { enable = false, }, + format = { + enable = true, + -- Put format options here + -- NOTE: the value should be STRING!! + defaultConfig = { + indent_style = "space", + indent_size = "2", + }, + }, }, }, })