p00f / clangd_extensions.nvim

Clangd's off-spec features for neovim's LSP client. Use https://sr.ht/~p00f/clangd_extensions.nvim instead
MIT License
448 stars 16 forks source link

Broken on 0.10; Issue with nvim_buf_get_extmarks #60

Closed j-barnak closed 1 week ago

j-barnak commented 1 month ago

Hey, I'm on 0.10 on Ubuntu 22.04

When opening any C or C++ file, I am immediately greeted with

Error executing vim.schedule lua callback: ...gd_extensions.nvim/lua/clangd_extensions/inlay_hints.lua:256: Invalid chunk: expected Array with 1 or 2 Strings                                      
stack traceback:                                                                                                                                                                                   
        [C]: in function 'nvim_buf_set_extmark'                                                                                                                                                    
        ...gd_extensions.nvim/lua/clangd_extensions/inlay_hints.lua:256: in function 'handler'                                                                                                     
        /usr/local/share/nvim/runtime/lua/vim/lsp/client.lua:685: in function ''                                                                                                                   
        vim/_editor.lua: in function <vim/_editor.lua:0>   

I'm not sure if they updated the API in 0.10

p00f commented 1 month ago

Can you try adding a vim.print(config.options.inlay_hints.highlight just before the nvim_buf_set_extmark call?

p00f commented 1 month ago

Also, I'm planning to remove inlay hints in some time now that inlay hints are in neovim. See :h lsp-inlay_hint

p00f commented 1 week ago

Author has not responded, closing