mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-29 06:18:18 +02:00
global virtualtext is respected for js
This commit is contained in:
parent
836286798e
commit
30a9becf6d
1 changed files with 6 additions and 6 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue