nvim-lua / kickstart.nvim

A launch point for your personal nvim configuration
MIT License
18.86k stars 21.57k forks source link

lint: fix lsp warning in `vim.lsp.inlay_hint.is_enabled` #947

Closed srdtrk closed 2 months ago

srdtrk commented 4 months ago

NOTE Please verify that the base repository above has the intended destination! Github by default opens Pull Requests against the parent of a forked repository. If this is your personal fork and you didn't intend to open a PR for contribution to the original project then adjust the base repository accordingly.


feoh commented 2 months ago

Hi! Can you please help me understand what this change is meant to fix? Where are you seeing this warning?

Thanks for your contribution!

VlaDexa commented 2 months ago

This was a neovim issue with their documentation where they showed that vim.lsp.inlay_hint.is_enabled requires an argument, when it actually doesn't.

Also someone reported that omitting bufnr causes issues, so I included it in #936

feoh commented 2 months ago

Thanks so much @VlaDexa - merging!