global virtualtext is respected for js

This commit is contained in:
christianchiarulli 2021-07-16 18:32:43 -04:00
parent 836286798e
commit 30a9becf6d

View file

@ -62,12 +62,12 @@ require("lspconfig").tsserver.setup {
root_dir = require("lspconfig/util").root_pattern("package.json", "tsconfig.json", "jsconfig.json", ".git"), root_dir = require("lspconfig/util").root_pattern("package.json", "tsconfig.json", "jsconfig.json", ".git"),
settings = { documentFormatting = false }, settings = { documentFormatting = false },
handlers = { handlers = {
["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, { -- ["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
virtual_text = O.lang.tsserver.diagnostics.virtual_text, -- virtual_text = O.lang.tsserver.diagnostics.virtual_text,
signs = O.lang.tsserver.diagnostics.signs, -- signs = O.lang.tsserver.diagnostics.signs,
underline = O.lang.tsserver.diagnostics.underline, -- underline = O.lang.tsserver.diagnostics.underline,
update_in_insert = true, -- update_in_insert = true,
}), -- }),
}, },
} }
require("lsp.ts-fmt-lint").setup() require("lsp.ts-fmt-lint").setup()