refactor(nvim): do not auto toggle inlay hints
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 1m19s
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 1m19s
This commit is contained in:
parent
1579c71beb
commit
094f7f2e73
@ -19,23 +19,6 @@ local function on_attach(client, bufnr)
|
|||||||
disable_format_capability(capabilities)
|
disable_format_capability(capabilities)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- Enable inlay hints if the language server provides them
|
|
||||||
if capabilities.inlayHintProvider then
|
|
||||||
vim.api.nvim_create_autocmd("InsertEnter", {
|
|
||||||
buffer = bufnr,
|
|
||||||
callback = function()
|
|
||||||
vim.lsp.inlay_hint.enable(true, { bufnr = bufnr })
|
|
||||||
end,
|
|
||||||
group = lsp_augroup,
|
|
||||||
})
|
|
||||||
vim.api.nvim_create_autocmd("InsertLeave", {
|
|
||||||
buffer = bufnr,
|
|
||||||
callback = function()
|
|
||||||
vim.lsp.inlay_hint.enable(false, { bufnr = bufnr })
|
|
||||||
end,
|
|
||||||
group = lsp_augroup,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
if capabilities.semanticTokensProvider and capabilities.semanticTokensProvider.full then
|
if capabilities.semanticTokensProvider and capabilities.semanticTokensProvider.full then
|
||||||
require("hlargs").disable_buf(bufnr)
|
require("hlargs").disable_buf(bufnr)
|
||||||
|
Loading…
Reference in New Issue
Block a user