nvim-lua / kickstart.nvim

A launch point for your personal nvim configuration
MIT License
16.69k stars 16.61k forks source link

Warning on missing a parameter #965

Closed sergeken closed 4 weeks ago

sergeken commented 1 month ago

Describe the bug

LuaLS gives a warning on is_enabled

To Reproduce

if client and client.server_capabilities.inlayHintProvider and vim.lsp.inlay_hint then -- Toggle inlay hints map('th', function() vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled()) end, '[T]oggle Inlay [H]ints') end

adding {} to inlay_hint.is_enabled() solves the problem inlay_hint.is_enabled({})

Desktop

Neovim Version

NVIM v0.10.0 Build type: Release LuaJIT 2.1.1716656478

tjkuson commented 1 month ago

947 would fix this

VlaDexa commented 3 weeks ago

This was an upstream neovim issue