From 8ec18a224fa7a9a2a7f3233c0b0be43917e9eed6 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Wed, 20 Nov 2024 19:57:28 +0200 Subject: Added back most of the LSPs --- .config/nvim/lua/custom/plugins/conform.lua | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to '.config/nvim/lua/custom/plugins/conform.lua') diff --git a/.config/nvim/lua/custom/plugins/conform.lua b/.config/nvim/lua/custom/plugins/conform.lua index 973e5dc..2610884 100644 --- a/.config/nvim/lua/custom/plugins/conform.lua +++ b/.config/nvim/lua/custom/plugins/conform.lua @@ -3,27 +3,27 @@ return { event = { 'BufWritePre' }, cmd = { 'ConformInfo' }, keys = { - { 'ft', 'FormatToggle', desc = '[F]ormat [T]oggle Globally' }, + { 'ft', 'FormatToggle', desc = '[F]ormat [T]oggle Globally' }, { 'fT', 'FormatToggle!', desc = '[F]ormat [T]oggle Locally' }, - { 'ff', 'Format', desc = '[F]ormat [F]ile' }, - { 'f', 'Format', desc = '[F]ormat', mode = 'v' }, + { 'ff', 'Format', desc = '[F]ormat [F]ile' }, + { 'f', 'Format', desc = '[F]ormat', mode = 'v' }, }, ---@module "conform" ---@type conform.setupOpts opts = { formatters_by_ft = { - -- ['lua'] = { 'stylua' }, + ['lua'] = { 'stylua' }, -- ['c'] = { 'clang-format' }, -- ['python'] = { 'isort', 'black' }, -- ['rust'] = { 'rustfmt' }, - -- ['go'] = { 'gofumpt', 'goimports-reviser' }, - -- ['markdown'] = { 'prettierd', 'prettier', stop_after_first = true }, - -- ['yaml'] = { 'prettierd' }, - -- ['json'] = { 'jq' }, - -- ['html'] = { 'prettierd', 'prettier', stop_after_first = true }, - -- ['css'] = { 'prettierd', 'prettier', stop_after_first = true }, - -- ['javascript'] = { 'prettierd', 'prettier', stop_after_first = true }, - -- ['typescript'] = { 'prettierd', 'prettier', stop_after_first = true }, + ['go'] = { 'gofumpt', 'goimports-reviser' }, + ['markdown'] = { 'prettierd', 'prettier', stop_after_first = true }, + ['yaml'] = { 'prettierd' }, + ['json'] = { 'jq' }, + ['html'] = { 'prettierd', 'prettier', stop_after_first = true }, + ['css'] = { 'prettierd', 'prettier', stop_after_first = true }, + ['javascript'] = { 'prettierd', 'prettier', stop_after_first = true }, + ['typescript'] = { 'prettierd', 'prettier', stop_after_first = true }, }, format_on_save = function(bufnr) -- Disable with a global or buffer local variable -- cgit v1.3.1