neovim: don't use inlay hints w/ tsserver
This commit is contained in:
@@ -58,7 +58,7 @@ local function on_attach(client, bufnr)
|
|||||||
vim.keymap.set("v", "<leader>.", vim.lsp.buf.range_code_action, opts)
|
vim.keymap.set("v", "<leader>.", vim.lsp.buf.range_code_action, opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
if client.server_capabilities.inlayHintProvider then
|
if client.name ~= "tsserver" and client.server_capabilities.inlayHintProvider then
|
||||||
vim.lsp.inlay_hint.enable(bufnr, true)
|
vim.lsp.inlay_hint.enable(bufnr, true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user