cpow / neovim-for-newbs

a simple lua neovim configuration for newbs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LSP not suggesting as many snippets as it seems it should

jaycoolslm opened this issue · comments

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

I have referred to this issue thread hrsh7th/cmp-nvim-lsp#38 (comment) if of any use

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

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

Closing this to open a more specific one for MacOS