fix eslint LSP auto format on save

This commit is contained in:
Noah Håkansson 2024-02-26 15:34:13 +01:00
parent 06c04d64e3
commit 42e571b77c
4 changed files with 29 additions and 18 deletions

View file

@ -6,6 +6,10 @@ local M = {
function M.config()
require('typescript-tools').setup({
on_attach = function(client)
client.server_capabilities.documentFormattingProvider = false
client.server_capabilities.documentRangeFormattingProvider = false
end,
settings = {
-- spawn additional tsserver instance to calculate diagnostics on it
separate_diagnostic_server = true,