kickstart.nvim icon indicating copy to clipboard operation
kickstart.nvim copied to clipboard

lsp_implementations won't work

Open kamomil opened this issue 1 year ago • 2 comments

Describe the bug

I use the kernel code and clicking 'gI' for 'Goto Implementation' does not do anything.

To Reproduce

  1. clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
  2. compile with make KBUILD_OUTPUT=~/kbuild ARCH=x86_64
  3. generate the compile_command.json file with ./scripts/clang-tools/gen_compile_commands.py -d ~/kbuild/
  4. inside neovim, stand on a function call and run: :lua vim.print(require('telescope.builtin').lsp_implementations()) this does nothing.

Desktop

  • OS: ubuntu 22
  • Terminal: terminator

Neovim Version

:version                                                                                                                                            
NVIM v0.10.0                                                                                                                                                 
Build type: Release                                                                                                                                          
LuaJIT 2.1.1713484068                                                                                                                                        

kamomil avatar Oct 05 '24 07:10 kamomil

lsp_definitions do work, the following command jumps to the definition of a function:

:lua vim.print(require('telescope.builtin').lsp_definitions())

kamomil avatar Oct 05 '24 07:10 kamomil

How to set up LSP with local servers that were not installed by Mason? I am trying to set a zig and specified the server zls = { cmd = { '~/user/bin/Zig/zls' }, }, but it keeps installing zls from Mason.

batyrmuhadov avatar Oct 06 '24 12:10 batyrmuhadov

Hi. This is not an actual issue. Closing.

feoh avatar Oct 30 '24 17:10 feoh