mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02:00
fix(lsp): only enableinlay hints for when buffer is an actual file. See #3284
This commit is contained in:
parent
f9b31372ae
commit
46cf5347b5
1 changed files with 3 additions and 1 deletions
|
@ -141,7 +141,9 @@ return {
|
||||||
-- inlay hints
|
-- inlay hints
|
||||||
if opts.inlay_hints.enabled then
|
if opts.inlay_hints.enabled then
|
||||||
LazyVim.lsp.on_supports_method("textDocument/inlayHint", function(client, buffer)
|
LazyVim.lsp.on_supports_method("textDocument/inlayHint", function(client, buffer)
|
||||||
|
if vim.api.nvim_buf_is_valid(buffer) and vim.bo[buffer].buftype == "" then
|
||||||
LazyVim.toggle.inlay_hints(buffer, true)
|
LazyVim.toggle.inlay_hints(buffer, true)
|
||||||
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue