From 6c496fd2c09743451bf320e5769b5765c193eb13 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Mon, 26 Jan 2026 17:07:07 +0100 Subject: [PATCH] stylua config for neovim config files --- .config/nvim/lua/plugins/conform.lua | 18 +++++++++--------- .config/nvim/stylua.toml | 5 +++++ 2 files changed, 14 insertions(+), 9 deletions(-) create mode 100644 .config/nvim/stylua.toml diff --git a/.config/nvim/lua/plugins/conform.lua b/.config/nvim/lua/plugins/conform.lua index d6f1842..d29ae04 100644 --- a/.config/nvim/lua/plugins/conform.lua +++ b/.config/nvim/lua/plugins/conform.lua @@ -1,12 +1,12 @@ return { - "stevearc/conform.nvim", - opts = { + "stevearc/conform.nvim", + opts = { - formatters_by_ft = { - sh = { "shfmt" }, - bash = { "shfmt" }, - lua = { "stylua" }, - fish = { "fish_indent" }, - }, - }, + formatters_by_ft = { + sh = { "shfmt" }, + bash = { "shfmt" }, + lua = { "stylua" }, + fish = { "fish_indent" }, + }, + }, } diff --git a/.config/nvim/stylua.toml b/.config/nvim/stylua.toml new file mode 100644 index 0000000..d0295e9 --- /dev/null +++ b/.config/nvim/stylua.toml @@ -0,0 +1,5 @@ +indent_type = "Spaces" +indent_width = 2 +column_width = 120 +[sort_requires] +enabled = true