From 0f7af22a134fccf0fe31d6cf087e727cb93009d8 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Mon, 2 Dec 2024 23:25:31 +0100 Subject: [PATCH] formatter updates, something for json --- lua/custom/plugins/init.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index 1b8c64a..8738075 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -32,13 +32,19 @@ return { } end, formatters_by_ft = { + ['_'] = { 'prettier' }, lua = { 'stylua' }, + json = { 'jq' }, + -- rust = { 'rustfmt' }, -- does not need one with the lsp there + c = { 'clang-format' }, + cpp = { 'clang-format' }, + python = { 'autopep8' }, -- Conform can also run multiple formatters sequentially -- python = { "isort", "black" }, -- -- You can use a sub-list to tell conform to run *until* a formatter -- is found. - -- javascript = { { "prettierd", "prettier" } }, + javascript = { 'prettierd', 'prettier' }, }, }, },