From 6ff24a02de38c64eebf4156bc10edefda67db669 Mon Sep 17 00:00:00 2001 From: EGRrqq <86194387+EGRrqq@users.noreply.github.com> Date: Thu, 21 Sep 2023 12:56:06 -0500 Subject: [PATCH] feat(cfg): remove lsp-format because i already have formatting :\ --- init.lua | 2 +- lua/custom/plugins/init.lua | 3 --- lua/kickstart/plugins/autoformat.lua | 6 +++--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/init.lua b/init.lua index abfa24be..65e6e0a5 100644 --- a/init.lua +++ b/init.lua @@ -454,7 +454,7 @@ local servers = { -- gopls = {}, -- pyright = {}, -- rust_analyzer = {}, - -- tsserver = {}, + tsserver = {}, -- html = { filetypes = { 'html', 'twig', 'hbs'} }, -- requirement for https://github.com/olrtg/nvim-emmet diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index d49b9cf5..51d92e7d 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -8,7 +8,4 @@ return { --"surroundings": parentheses, brackets, quotes, XML tags, and more 'tpope/vim-surround', - - --wrapper around Neovims native LSP formatting - "lukas-reineke/lsp-format.nvim", } diff --git a/lua/kickstart/plugins/autoformat.lua b/lua/kickstart/plugins/autoformat.lua index bc56b15b..1bbd622e 100644 --- a/lua/kickstart/plugins/autoformat.lua +++ b/lua/kickstart/plugins/autoformat.lua @@ -46,9 +46,9 @@ return { -- Tsserver usually works poorly. Sorry you work with bad languages -- You can remove this line if you know what you're doing :) - if client.name == 'tsserver' then - return - end + -- if client.name == 'tsserver' then + -- return + -- end -- Create an autocmd that will run *before* we save the buffer. -- Run the formatting command for the LSP that has just attached.