cpow / neovim-for-newbs

a simple lua neovim configuration for newbs
452 stars 81 forks source link

LSP not suggesting as many snippets as it seems it should #14

Closed jaycoolslm closed 1 month ago

jaycoolslm commented 1 month ago

I have matched my set up exactly to this repo but am unable to get as many snippets as the tutorial.

e.g. as you can see below, the tutorial would bring up 'function' as a snippet as well as 'fu'

Screenshot 2024-06-04 at 05 52 36

There are lots of other instances where I am not getting suggested stuff which I would usually get from vscode, e.g. local vars

EDIT: Part of these issues were caused by me moving from bash -> zsh half way through the tutorial. you can source .bashrc inside your zsh file

jaycoolslm commented 1 month ago

I have referred to this issue thread https://github.com/hrsh7th/cmp-nvim-lsp/issues/38#issuecomment-1815248651 if of any use

jaycoolslm commented 1 month ago

On my server fixed by adding nvim_lsp in cmp.config.sources which wasnt done in the video... unsure why on my local machine which had this repo cloned it still didnt work though

jaycoolslm commented 1 month ago

Weird... even if I copy the server config, which does have some extra snippets, over to my macos local... the macos local isn't getting the snippets

jaycoolslm commented 1 month ago

Closing this to open a more specific one for MacOS