Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken on 0.10; Issue with nvim_buf_get_extmarks #60

Open
j-barnak opened this issue May 21, 2024 · 2 comments
Open

Broken on 0.10; Issue with nvim_buf_get_extmarks #60

j-barnak opened this issue May 21, 2024 · 2 comments

Comments

@j-barnak
Copy link

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
Copy link
Owner

p00f commented May 21, 2024

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

@p00f
Copy link
Owner

p00f commented May 21, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants