neovim: don't use inlay hints w/ tsserver

This commit is contained in:
2023-11-21 10:40:17 +03:00
parent 2a91475074
commit 47b0a5a1f2

View File

@@ -58,7 +58,7 @@ local function on_attach(client, bufnr)
vim.keymap.set("v", "<leader>.", vim.lsp.buf.range_code_action, opts)
end
if client.server_capabilities.inlayHintProvider then
if client.name ~= "tsserver" and client.server_capabilities.inlayHintProvider then
vim.lsp.inlay_hint.enable(bufnr, true)
end
end