This commit is contained in:
chilborne 2023-12-18 09:13:24 +01:00
parent 00d2f2fcf5
commit c699c93497
30 changed files with 31 additions and 7 deletions

4
lua/custom/plugins/autoformat.lua Normal file → Executable file
View file

@ -35,8 +35,6 @@ return {
group = vim.api.nvim_create_augroup('kickstart-lsp-attach-format', { clear = true }),
-- This is where we attach the autoformatting for reasonable clients
callback = function(args)
-- dont reformat anything
if true then return end
local client_id = args.data.client_id
local client = vim.lsp.get_client_by_id(client_id)
local bufnr = args.buf
@ -48,7 +46,7 @@ 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' or client.name == 'jsonls' or client.name == 'html' then
if client.name == 'tsserver' or client.name == 'jsonls' or client.name == 'html' or client.name == 'intelephense' then
return
end