vim

2023-06-17T15:22:31.364629Z

I am using clojure-lsp and cmp in neovim using astrovim config. autocompletion works fine, but the documentation for each function doesn't show up. How should I debug this?

2023-06-24T09:38:09.015719Z

FYI it was fixed for me based on this https://github.com/clojure-lsp/clojure-lsp/issues/326#issuecomment-906022050 I needed to delete the .lsp dir and recreate .clj-kondo dir

2023-06-18T14:49:15.140279Z

I couldn't figure it out 😔. I will wait for @jr0cket to update his Astronvim config

practicalli-johnny 2023-06-18T17:45:05.860829Z

@aziz.aldawood I do get documentation on function names from the clojure.core library in the auto-completion pop-up (although I havent checked every function shows docs). Are there specific functions that are not showing? Are docs shown if using SPC l h to show the LSP documentation for a function name? A popup should show next to the funciton with the docs, or a notification that there is no signature (docstring) on a function in the top left corner. I havent tested if functions from other libraries are showing their docs though. If this is not working then I'll try find a fix. I am using nvim v0.9.0 release on Linux (appimage), maybe older or unreleased nvim versions are causing the docs not to display. Also adding custom code to the astronvim user config which is not valid can disable features in nvim, so check any changes from the practicalli/astronvim-config project

Leaf Garland 2023-06-18T06:15:48.031269Z

Perhaps look into the instructions on nvim-cmp-lsp about setting capabilities. A common cause of no docs in completion is because the LSP client in nvim doesn’t enable that capability by default.

2023-06-19T18:53:03.473749Z

@jr0cket not even clojure.core. when I do SPC l h I get signature not available message I am on nvim 0.9.1 on mac m1 I will try with a fresh install and see what bothers me is that I have no clue how to debug this issue