fix eslint LSP auto format on save
This commit is contained in:
parent
06c04d64e3
commit
42e571b77c
4 changed files with 29 additions and 18 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue