This commit is contained in:
Ray Elliott 2021-10-17 16:56:14 +01:00
commit e601f1d755
4 changed files with 4 additions and 3 deletions

View file

@ -54,8 +54,8 @@ local on_attach = function(client, bufnr)
-- buf_set_keymap('n', '<space>wr', '<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>', opts)
-- buf_set_keymap('n', '<space>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts)
if client.name == 'tsserver' then
print('tsserver - disabling formatting')
if client.name == 'tsserver' or client.name == 'intelephense' then
print(client.name .. ' - disabling formatting')
client.resolved_capabilities.document_formatting = false;
end