From cebf16e11d968b344df40dab8e2622b4dd3cd084 Mon Sep 17 00:00:00 2001 From: cscherr Date: Wed, 30 Apr 2025 10:55:01 +0200 Subject: [PATCH] add ts_ls and enable rustfmt again --- lua/custom/plugins/configs/lsp.lua | 1 + lua/custom/plugins/init.lua | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/custom/plugins/configs/lsp.lua b/lua/custom/plugins/configs/lsp.lua index 3fca325..68c5cc4 100644 --- a/lua/custom/plugins/configs/lsp.lua +++ b/lua/custom/plugins/configs/lsp.lua @@ -148,6 +148,7 @@ local servers = { }, }, html = {}, + ts_ls = {}, cssls = {}, clangd = {}, pyright = {}, diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index 78051ed..28422b0 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -36,6 +36,7 @@ return { end, formatters_by_ft = { ['_'] = { 'prettier' }, + rust = { 'rust-analyzer' }, lua = { 'stylua' }, json = { 'jq' }, -- rust = { 'rustfmt' }, -- does not need one with the lsp there @@ -47,7 +48,7 @@ return { -- -- You can use a sub-list to tell conform to run *until* a formatter -- is found. - javascript = { 'prettierd', 'prettier' }, + javascript = { 'prettier' }, }, }, },